Skip to content

Commit

Permalink
aspnet default port changed from 80 to 8080 :S
Browse files Browse the repository at this point in the history
  • Loading branch information
sebagomez committed Nov 21, 2023
1 parent 9f17588 commit c976aaf
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Or deploy it wherever you want thanks to [docker images](https://hub.docker.com/

# Azure Storage Explorer

Azure Storage Web Explorer makes it easier for developers to browse and manage Blobs, Queues and Tables from Azure Storage. You'll no longer have to install a local client to do that. It was originally developed in C# with asp.net and WebForms 2.0, but now it has been migrated to .NET ~~Core 2.1, 2.2, 3.1, 5.0~~ 6.0 and ~~Angular~~. *Edit:* Sick and tired of all del npm module and dependency hell I moved this project to a Blazor Server app.
Azure Storage Web Explorer makes it easier for developers to browse and manage Blobs, Queues and Tables from Azure Storage. You'll no longer have to install a local client to do that. It was originally developed in C# with asp.net and WebForms 2.0, but now it has been migrated to .NET ~~Core 2.1, 2.2, 3.1, 5.0, 6, 7~~ 8 and ~~Angular~~. *Edit:* Sick and tired of all del npm module and dependency hell I moved this project to a Blazor Server app.


To login just enter your account name and key or SAS ([Shared Access Signature](https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account#manage-your-storage-account))
Expand Down Expand Up @@ -65,7 +65,7 @@ If you don't write a query the system will retrieve every Entity on the Table

## Build

To build this repo make sure you install .NET 6.0 sdk.
To build this repo make sure you install [.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download).

At the root of the project just execute the ./build.sh script
```sh
Expand All @@ -88,10 +88,10 @@ There's a docker image at [hub.docker.com](https://hub.docker.com/r/sebagomez/az
To spin up a container with the latest version just run the following command

```sh
docker run --rm -it -p 5555:80 sebagomez/azurestorageexplorer
docker run --rm -it -p 8000:8080 sebagomez/azurestorageexplorer
```

Then open your browser and navigate to http://localhost:5555, and voilá!
Then open your browser and navigate to http://localhost:8000, and voilá!

## Kubernetes

Expand Down Expand Up @@ -121,6 +121,7 @@ or, you can follow helm instructions the get the application URL:
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=azurestorageexplorer,app.kubernetes.io/instance=azurestorageexplorer" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"

kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
```

Expand Down
2 changes: 1 addition & 1 deletion helm/azurestorageexplorer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.REPLACE_APP_VERSION
version: 0.3.REPLACE_APP_VERSION

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion helm/azurestorageexplorer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
Expand Down
9 changes: 8 additions & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
cd "${0%/*}" || exit 1

dotnet publish --configuration Release -o ./bin ./src/web/web.csproj
dotnet publish --configuration Release -o ./bin ./src/web/web.csproj

OK=$?
if [ $OK -eq 0 ]; then
cd bin
dotnet web.dll
cd ..
fi
2 changes: 1 addition & 1 deletion src/web/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<AzureStorageWebExplorerVersion>2.15.0</AzureStorageWebExplorerVersion>
<AzureStorageWebExplorerVersion>2.15.1</AzureStorageWebExplorerVersion>
</PropertyGroup>
</Project>

0 comments on commit c976aaf

Please sign in to comment.