Skip to content

Commit

Permalink
chore: release demo docker image alongside classical one
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Cavy committed Dec 25, 2024
1 parent 8d0912e commit 03b929a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: maif/izanami:${{ github.event.inputs.releaseVersion }}
- name: Build and push demo image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: {context}/demo-docker-image/Dockerfile-pg-embeded
tags: maif/izanami-test-standalone:${{ github.event.inputs.releaseVersion }}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN mkdir /app
#RUN groupadd -g 10001 javauser && useradd -u 10000 -g javauser javauser
ENV IZANAMI_CONTAINERIZED=true
COPY ./target/izanami.jar /app/izanami.jar
COPY script.sh /app/script.sh
COPY ./demo-docker-image/script.sh /app/script.sh
RUN chmod +x /app/script.sh

#WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion script.sh → demo-docker-image/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "Waiting postgres to launch on 5432..."

while ! nc -z localhost 5432; do
sleep 0.1 # wait for 1/10 of the second before check again
sleep 0.1
done

java -jar /app/izanami.jar
7 changes: 7 additions & 0 deletions manual/docs/06-dev/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ To test docker image
docker run --env IZANAMI_PG_URI=postgresql://postgres:[email protected]:5432/postgres -p 9000:9000 izanami
```

To build "test" docker image (docker image with embeded postgres)

```sh
docker build -f ./demo-docker-image/Dockerfile-pg-embeded .
```


## Running documentation locally

To run documentation, just install and start project in `manual` folder.
Expand Down

0 comments on commit 03b929a

Please sign in to comment.