Merge pull request 'Fix order of docker command arguments' (#232) from Weasy666/conduit:master into master
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/232 Reviewed-by: Timo Kösters <timo@koesters.xyz>next
commit
de8bba4b49
|
@ -11,7 +11,7 @@ FROM alpine:3.12 as builder
|
||||||
# from the official git repository. Defaults to the git repo.
|
# from the official git repository. Defaults to the git repo.
|
||||||
ARG LOCAL=false
|
ARG LOCAL=false
|
||||||
# Specifies which revision/commit is build. Defaults to HEAD
|
# Specifies which revision/commit is build. Defaults to HEAD
|
||||||
ARG GIT_REF=HEAD
|
ARG GIT_REF=origin/master
|
||||||
|
|
||||||
# Add 'edge'-repository to get Rust 1.45
|
# Add 'edge'-repository to get Rust 1.45
|
||||||
RUN sed -i \
|
RUN sed -i \
|
||||||
|
@ -30,7 +30,7 @@ COPY . .
|
||||||
RUN if [[ $LOCAL == "true" ]]; then \
|
RUN if [[ $LOCAL == "true" ]]; then \
|
||||||
cargo install --path . ; \
|
cargo install --path . ; \
|
||||||
else \
|
else \
|
||||||
cargo install --git "https://git.koesters.xyz/timo/conduit.git" --rev ${GIT_REF}; \
|
cargo install --git "https://github.com/timokoesters/conduit.git" --rev ${GIT_REF}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
########################## RUNTIME IMAGE ##########################
|
########################## RUNTIME IMAGE ##########################
|
||||||
|
|
|
@ -29,7 +29,7 @@ Pull and run the docker image with
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
docker pull matrixconduit/matrix-conduit:latest
|
docker pull matrixconduit/matrix-conduit:latest
|
||||||
docker run -d matrixconduit/matrix-conduit:latest -p 8448:8000 -v db:/srv/conduit/.local/share/conduit
|
docker run -d -p 8448:8000 -v db:/srv/conduit/.local/share/conduit matrixconduit/matrix-conduit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Or build and run it with docker or docker-compose. [Read more](docker/README.md)
|
Or build and run it with docker or docker-compose. [Read more](docker/README.md)
|
||||||
|
|
|
@ -40,7 +40,7 @@ which also will tag the resulting image as `matrixconduit/matrix-conduit:latest`
|
||||||
After building the image you can simply run it with
|
After building the image you can simply run it with
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
docker run -d matrixconduit/matrix-conduit:latest -p 8448:8000 -v db:/srv/conduit/.local/share/conduit -e ROCKET_SERVER_NAME="localhost:8000"
|
docker run -d -p 8448:8000 -v db:/srv/conduit/.local/share/conduit -e ROCKET_SERVER_NAME="localhost:8000" matrixconduit/matrix-conduit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
For detached mode, you also need to use the `-d` flag. You can pass in more env vars as are shown here, for an overview of possible values, you can take a look at the `docker-compose.yml` file.
|
For detached mode, you also need to use the `-d` flag. You can pass in more env vars as are shown here, for an overview of possible values, you can take a look at the `docker-compose.yml` file.
|
||||||
|
|
Loading…
Reference in New Issue