diff options
author | Tiago Pires <tandrepires@gmail.com> | 2015-07-20 14:53:53 +0100 |
---|---|---|
committer | Tiago Pires <tandrepires@gmail.com> | 2015-07-20 15:19:46 +0100 |
commit | a5f9077e5a7d334e7ec84cedc4d8465ff1e2d910 (patch) | |
tree | 51d92bc2af1dce55db5cb6d05f48a19b79e9ad49 /docker/assemble_blocks.sh | |
parent | 548b95f7b593d80a241c9a1027eda6b4549ca995 (diff) |
Update docker image.
Shrink docker image.
Update from fig (deprecated) to docker-compose.
Update README.md.
Signed-off-by: Tiago Pires <tandrepires@gmail.com>
Diffstat (limited to 'docker/assemble_blocks.sh')
-rwxr-xr-x | docker/assemble_blocks.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docker/assemble_blocks.sh b/docker/assemble_blocks.sh index 852064de..3109a6a0 100755 --- a/docker/assemble_blocks.sh +++ b/docker/assemble_blocks.sh @@ -10,8 +10,8 @@ gogs_config_file=conf.tmp gogs_config=config gogs_init_file=$docker_dir/init_gogs.sh -fig_file=fig.yml -fig_config=fig +compose_file=docker-compose.yml +compose_config=docker-compose gogs_init_template=$template_dir/init_gogs.sh.tpl @@ -28,7 +28,7 @@ if [ "$#" == 0 ]; then exit 0 fi -for file in $gogs_config_file $fig_file; do +for file in $gogs_config_file $compose_file; do if [ -e $file ]; then echo "Deleting $file" rm $file @@ -53,10 +53,10 @@ for dir in $@; do echo "" >> $gogs_config_file fi - if [ -e $current_dir/$fig_config ]; then - echo "Adding $current_dir/$fig_config to $fig_file" - cat $current_dir/fig >> $fig_file - echo "" >> $fig_file + if [ -e $current_dir/$compose_config ]; then + echo "Adding $current_dir/$compose_config to $compose_file" + cat $current_dir/$compose_config >> $compose_file + echo "" >> $compose_file fi done @@ -69,4 +69,4 @@ d if [ -e $gogs_config_file ]; then echo "Removing temporary GoGS config" rm $gogs_config_file -fi
\ No newline at end of file +fi |