Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate prod and preprod #35

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ COPY auth /usr/share/nginx/recovery
COPY export /usr/share/nginx/export
COPY import /usr/share/nginx/import

# prod
EXPOSE 8080/tcp
EXPOSE 8081/tcp
EXPOSE 8082/tcp
EXPOSE 8083/tcp

# preprod
EXPOSE 7070/tcp
EXPOSE 7071/tcp
EXPOSE 7072/tcp
EXPOSE 7073/tcp

CMD ["nginx"]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To build:
docker build . -t frames
```

To run (mapping `[8080, 8081]` to `[18080, 18081]` because they're often busy):
To run (mapping `[8080, 8081, ...]` to `[18080, 18081, ...]` because they're often busy):
```
docker run -p18080:8080 -p18081:8081 -t frames
```
Expand All @@ -97,6 +97,9 @@ k3d cluster create frames

# Deploy to it
kubectl kustomize kustomize | kubectl --context k3d-frames apply -f-

# Be able to access locally (8080 as an example)
kubectl port-forward svc/frames 8080:8080
```

To clean things up:
Expand Down
Loading
Loading