Commit 29772604 authored by julien dehos's avatar julien dehos

dockerhub image

parent 021ee6bd
......@@ -37,7 +37,7 @@ make server
- test in a browser: <http://localhost:3000>
## deploy
## deploy (manually)
- build a docker image:
......@@ -68,3 +68,8 @@ heroku logs
heroku open --app miso-xhr
```
## deploy (using gitlab CI/CD)
TODO
FROM nixos/nix
WORKDIR /root
RUN nix-env -iA nixpkgs.git
RUN git clone https://gitlab.com/juliendehos/miso-xhr
WORKDIR /root/miso-xhr
RUN nix-shell -A server --run "echo server ok"
RUN nix-shell -A client --run "echo client ok"
Build a docker image and upload it to dockerhub, for CI/CD:
```
docker build -t juliendehos/misomorphic:latest .
docker login
docker push juliendehos/misomorphic:latest
docker logout
```
**Warning: this takes more than 1 hour and requires more than 4 GB RAM !**
You have to build & upload a new image, if you change something in [the nixpkgs.nix file](../nix/nixpkgs.nix).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment