Skip to content

Commit

Permalink
general update*
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolicvs committed Feb 28, 2020
1 parent a87300e commit 40909a7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
16 changes: 16 additions & 0 deletions doc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
# sh ./build.sh id_rsa_insylva_docker
if [$1 -eq ""]
then
set "id_rsa_insylva_docker"
fi

while [ "$1" != "" ]; do
SSH_KEY=$(cat ~/.ssh/$1)
SSH_KEY_PASSPHRASE=$(cat ~/.ssh/$1.pub)
# Shift all the parameters down by one
shift
done

docker build --no-cache --build-arg SSH_KEY="$SSH_KEY" --build-arg SSH_KEY_PASSPHRASE="$SSH_KEY_PASSPHRASE" --tag in-sylva.doc .

3 changes: 3 additions & 0 deletions doc/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker run -d -p 3003:3000 in-sylva.doc:latest
18 changes: 16 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,27 @@ services:
container_name: in-sylva.portainer
image: portainer/portainer
command: -H unix:///var/run/docker.sock
restart: always
restart: unless-stopped
ports:
- 9000:9000
- 8000:8000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
- portainer_data:/data

doc:
container_name: in-sylva.doc
image: in-sylva.doc:latest
restart: unless-stopped
volumes:
- ./docs:/app/docs
- ./doc/website/blog:/app/website/blog
- ./doc/website/core:/app/website/core
- ./doc/website/i18n:/app/website/i18n
- ./doc/website/pages:/app/website/pages
ports:
- 3004:3000
- 35729:35729

volumes:
postgres-data:
Expand Down

0 comments on commit 40909a7

Please sign in to comment.