Skip to content

Commit

Permalink
more tests for the ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
chargio committed Nov 15, 2024
1 parent 259a59f commit 1d47eef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ ENV MIX_ENV="prod"
# Add JPperf as workaround for the failure on building the code in Github actions
# It should not be necessary with QEMU 8.1, and it introduces some security issues, so delete as as soon as possible
# ENV ERL_FLAGS="+JMsingle true"
ARG ERL_FLAGS=""
ENV ERL_FLAGS=${ERL_FLAGS}


# install mix dependencies
COPY mix.exs mix.lock ./
Expand Down
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Counter

To start your Phoenix server:
A Phoenix LiveView application that runs on a container in Kubernetes. It shows a counter with + and - buttons, and synchronizes the state between all visitors
Use the Dockerfile in the root to create an image that is suitable to be run in Kubernetes.


To start your Phoenix server locally:

* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).

## Learn more

* Official website: https://www.phoenixframework.org/
* Guides: https://hexdocs.pm/phoenix/overview.html
* Docs: https://hexdocs.pm/phoenix
* Forum: https://elixirforum.com/c/phoenix-forum
* Source: https://github.com/phoenixframework/phoenix
To run it in Kubernetes:
1. Build the image using the Dockerfile. There is configuration to use GitHub actions to automatically build a new image.
2. Run the image using the manifests in the Kubernetes folder
Secret to store the KEY_SECRET_BASE
Deployment that uses the Secret
Service to publish the endpoint
PHX_HOME that points to the service

0 comments on commit 1d47eef

Please sign in to comment.