aboutsummaryrefslogtreecommitdiff
path: root/script/docker-build.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-07-06 10:39:28 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2021-07-06 10:39:28 +0200
commit2e3dda30a0a4f6ced175d3eaf03bdbbb46846b62 (patch)
tree05363affb70cb2fa686158e07d5ed52678ea9c12 /script/docker-build.sh
parent7838651848a1835cb9630a9e3da3259d1cd56c9d (diff)
downloadjo.mssola.com-2e3dda30a0a4f6ced175d3eaf03bdbbb46846b62.tar.gz
jo.mssola.com-2e3dda30a0a4f6ced175d3eaf03bdbbb46846b62.zip
Removing stuff that is no longer needed
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'script/docker-build.sh')
-rwxr-xr-xscript/docker-build.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/script/docker-build.sh b/script/docker-build.sh
deleted file mode 100755
index ce4e7f0..0000000
--- a/script/docker-build.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env bash
-# Copyright (C) 2019-2020 Miquel Sabaté Solà <mikisabate@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <https://www.gnu.org/licenses/>.
-
-set -ex
-
-# If the image does not exist, build it.
-IMGTAG=mssola/jo:latest
-[ ! -z $(docker images -q $IMGTAG) ] || docker build -t $IMGTAG .
-
-# The user which should own the produced files.
-user=$(id -u `whoami`)
-group=$(id -g `whoami`)
-
-# The -it flag should not be set on the post-receive hook because there's no TTY
-# there.
-IT="-it"
-if [ "$POST_RECEIVE" = "true" ]; then
- IT=
-fi
-
-# And now the call...
-docker run --rm $IT \
- -e BUILD_SOURCE=/src -e BUILD_DEST=/dest \
- -e BUNDLE_GEMFILE=/src/Gemfile -e USER=$user -e GROUP=$group \
- -e NODE_ENV=development -e NUKE=$NUKE \
- -v $BUILD_SOURCE:/src -v $BUILD_DEST:/dest \
- $IMGTAG /src/script/build.sh