-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathjustfile
43 lines (33 loc) · 1.05 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This help
default:
@just --list
# Build the solution
build:
dotnet build ./src/web/web.csproj
# Publish and launches in localhost:5000
publish:
#!/bin/bash
dotnet publish --configuration Release -o ./bin ./src/web/web.csproj
OK=$?
if [ $OK -eq 0 ]; then
echo Azure Storage Explorer will be running in http://localhost:5000/
cd bin
dotnet web.dll
cd ..
fi
# Run unit tests
test:
dotnet test ./tests/StorageLibTests/StorageLibTests.csproj
# Build Docker image as azurestorageexplorer:local
dbuild:
docker build --tag azurestorageexplorer:local ./src
# Launches the local docker image (azurestorageexplorer:local) at http://localhost:8080
drun:
echo App will run on http://localhost:8080
docker run --rm -p 8080:8080 --name azurestorageexplorer azurestorageexplorer:local
# Launches a docker compose with azurestorageexplorer:local and azurite
compose:
docker-compose -f ./docker-compose/azurestorageexplorer.yaml up
# Stops de docker compose
uncompose:
docker-compose -f ./docker-compose/azurestorageexplorer.yaml down