Skip to content

Commit

Permalink
feat: ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Veroneze committed Apr 5, 2023
1 parent 68ff19f commit a899e98
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Push base images
run: |
docker push jacksonveroneze/aspnet:6.0-alpine
docker push jacksonveroneze/aspnet:7.0-alpine
docker push jacksonveroneze/aspnet:7.0-ubuntu
- name: Build xray images
Expand All @@ -39,5 +39,5 @@ jobs:

- name: Push xray images
run: |
docker push jacksonveroneze/aspnet:6.0-alpine-xray
docker push jacksonveroneze/aspnet:7.0-alpine-xray
docker push jacksonveroneze/aspnet:7.0-ubuntu-xray
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine

# .NET envs
ENV ASPNETCORE_URLS=http://+:5000
ENV ASPNETCORE_URLS=http://+:8080
ENV DOTNET_RUNNING_IN_CONTAINER=true
ENV ASPNETCORE_ENVIRONMENT=Production
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

# User envs
ARG USERNAME=dotnet
ARG USERNAME=app
ARG USER_UID=1000
ARG USER_GID=$USER_UID

Expand All @@ -21,9 +21,9 @@ ENV LC_ALL pt_BR.UTF-8
ENV LANG pt_BR.UTF-8
ENV LANGUAGE pt_BR.UTF-8

ENV APP_DIR=/home/$USERNAME/app
ENV APP_DIR=/home/$USERNAME/application

EXPOSE 5000
EXPOSE 8080

USER $USERNAME

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jacksonveroneze/aspnet:6.0-alpine
FROM jacksonveroneze/aspnet:7.0-alpine

USER root

Expand All @@ -7,4 +7,4 @@ RUN sh -x /tmp/script-install-xray.sh && rm /tmp/script-install-xray.sh

ENV AWS_XRAY_CONTEXT_MISSING=LOG_ERROR

USER dotnet
USER $USERNAME
8 changes: 4 additions & 4 deletions Aspnet/Ubuntu/Dockerfile-7-Ubuntu
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0-jammy

# .NET envs
ENV ASPNETCORE_URLS=http://+:5000
ENV ASPNETCORE_URLS=http://+:8080
ENV DOTNET_RUNNING_IN_CONTAINER=true
ENV ASPNETCORE_ENVIRONMENT=Production
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

# User envs
ARG USERNAME=dotnet
ARG USERNAME=app
ARG USER_UID=1000
ARG USER_GID=$USER_UID

Expand All @@ -21,9 +21,9 @@ ENV LC_ALL pt_BR.UTF-8
ENV LANG pt_BR.UTF-8
ENV LANGUAGE pt_BR.UTF-8

ENV APP_DIR=/home/$USERNAME/app
ENV APP_DIR=/home/$USERNAME/application

EXPOSE 5000
EXPOSE 8080

USER $USERNAME

Expand Down
2 changes: 1 addition & 1 deletion Aspnet/Ubuntu/Dockerfile-7-Ubuntu-xray
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN sh -x /tmp/script-install-xray.sh && rm /tmp/script-install-xray.sh

ENV AWS_XRAY_CONTEXT_MISSING=LOG_ERROR

USER dotnet
USER $USERNAME
2 changes: 1 addition & 1 deletion Aspnet/build-base-images.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#Alpine
docker build -f ./Alpine/Dockerfile-6-Alpine -t jacksonveroneze/aspnet:6.0-alpine ./Alpine/
docker build -f ./Alpine/Dockerfile-6-Alpine -t jacksonveroneze/aspnet:7.0-alpine ./Alpine/

#Ubuntu
docker build -f ./Ubuntu/Dockerfile-7-Ubuntu -t jacksonveroneze/aspnet:7.0-ubuntu ./Ubuntu/
2 changes: 1 addition & 1 deletion Aspnet/build-xray-images.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#Alpine
docker build -f ./Alpine/Dockerfile-6-Alpine-xray -t jacksonveroneze/aspnet:6.0-alpine-xray ./Alpine/
docker build -f ./Alpine/Dockerfile-6-Alpine-xray -t jacksonveroneze/aspnet:7.0-alpine-xray ./Alpine/

#Ubuntu
docker build -f ./Ubuntu/Dockerfile-7-Ubuntu-xray -t jacksonveroneze/aspnet:7.0-ubuntu-xray ./Ubuntu/

0 comments on commit a899e98

Please sign in to comment.