xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit ec28c883d9f7c9c69d80302a7d70ea1d630b070c

Improved docker image creation
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-04-06 16:15
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-04-06 16:15
Parent(s): 4d9dcd67da247000a19a2f81aebd81f265bfe293
Signing key:
Tree: a54fcb8c8f0a7f0ee6499faba058f9e4811dac94
File Lines added Lines deleted
docker/build.sh 4 3
docker/push.sh 3 2
File docker/build.sh changed (mode: 100755) (index 5ee78b9..e898e94)
... ... set -e
5 5
6 6 . ../duilder.conf . ../duilder.conf
7 7
8 RP_VER="20160311"
8 RP_VER="20160319"
9 9 sed -e "s|@@RP_VER@@|${RP_VER}|" Dockerfile-postgresql.tmpl > Dockerfile-postgresql sed -e "s|@@RP_VER@@|${RP_VER}|" Dockerfile-postgresql.tmpl > Dockerfile-postgresql
10 10 if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then if [ "`docker images -q rocketgit/rocketgit-postgresql:${RP_VER}`" = "" ]; then
11 11 echo "Building rocketgit-postgresql (${RP_VER})..." echo "Building rocketgit-postgresql (${RP_VER})..."
12 12 docker build \ docker build \
13 --tag="rocketgit/rocketgit-postgresql:latest" \
14 13 --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \ --tag="rocketgit/rocketgit-postgresql:${RP_VER}" \
15 14 -f Dockerfile-postgresql \ -f Dockerfile-postgresql \
16 15 . .
16 docker tag -f "rocketgit/rocketgit-postgresql:${RP_VER}" \
17 "rocketgit/rocketgit-postgresql:latest"
17 18 fi fi
18 19
19 20 echo "Building rocketgit..." echo "Building rocketgit..."
20 21 sed -e "s|@@VER@@|${VER}|" Dockerfile-rocketgit.tmpl > Dockerfile-rocketgit sed -e "s|@@VER@@|${VER}|" Dockerfile-rocketgit.tmpl > Dockerfile-rocketgit
21 22 docker build \ docker build \
22 --tag="rocketgit/rocketgit:latest" \
23 23 --tag="rocketgit/rocketgit:${VER}" \ --tag="rocketgit/rocketgit:${VER}" \
24 24 -f Dockerfile-rocketgit \ -f Dockerfile-rocketgit \
25 25 . .
26 docker tag -f "rocketgit/rocketgit:${VER}" "rocketgit/rocketgit:latest"
File docker/push.sh changed (mode: 100755) (index 72cfa96..e07b431)
... ... set -e
7 7
8 8 echo "VER=${VER}" echo "VER=${VER}"
9 9
10 echo "Is it ok (y/n)?"
10 echo -n "Is it ok (y/n)? "
11 11 read answer read answer
12 12
13 13 if [ "${answer}" != "y" ]; then if [ "${answer}" != "y" ]; then
 
... ... fi
16 16
17 17 docker push rocketgit/rocketgit-postgresql docker push rocketgit/rocketgit-postgresql
18 18
19 docker push rocketgit/rocketgit
19 docker push rocketgit/rocketgit:${VER}
20 docker push rocketgit/rocketgit:latest
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master