-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build scrypt
- Loading branch information
Showing
11 changed files
with
68 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM debian:stretch | ||
LABEL maintainer Camptocamp "[email protected]" | ||
|
||
ARG VERSION | ||
ENV VERSION=$VERSION | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install --assume-yes --no-install-recommends gettext-base python3-pip python3-setuptools && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
geoportal/c2cgeoportal_geoportal/scaffolds/create/build_tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash -e | ||
|
||
function help { | ||
echo Usage: | ||
echo './build -> keep the curent .env if exists or use the .env.sample' | ||
echo './build [env files...] -> use the ordered env files list' | ||
exit 1 | ||
} | ||
|
||
if [ $# -gt 0 ] && ( [ $1 == '-h' ] || [ $1 == '--help' ] | ||
then | ||
help | ||
fi | ||
|
||
set -x | ||
docker build --tag=camptocamp/{{package}]-config \ | ||
--build-arg=PGSCHEMA=main . | ||
docker build --tag=camptocamp/{{package}}-geoportal \ | ||
--build-arg=PGSCHEMA=main \ | ||
--build-arg=GIT_HASH=$(git rev-parse HEAD) geoportal | ||
|
||
if [ $# -gt 0 ] | ||
then | ||
shift | ||
echo "$@" > .env | ||
else | ||
if [ ! -f .env ] | ||
then | ||
cp .env.sample .env | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters