Pretty much the entire SDAL infrastructure stack.
This repository uses git submodules. All the directories in the active and inactive folders are submodules in this repository.
You can choose to use this repository just for the compose files if you'd like and not have to deal with the git-mastics of working with submodules.
The submodule setup is really here as a convenience so you don't need to clone all the repositories separately.
If you plan to not use submodules, remember to do a separate git clone for all the other image repositories.
clonethis repository as usual
git clone [email protected]:bi-sdal/dockerimages.git- The directories in the
activeandinactivedirectores will be empty, this is normal. You can use the docker compose files with
docker compose up -d --no-recreateMaking changes is the same as a normal git repository with the git add and git commit commands.
Commonly used functions
git clone --recursive [email protected]:bi-sdal/dockerimages.gitgit pull --recurse-submodules=yes origin master && \
git submodule update --remote --merge- Make edits like before
git addgit commit -m ''git push origin master
- make change to individual submodule
cdinto the submodulegit checkout master- make yo changes
git add/git commitlike a normal repositorycd ..back to the root repository
- update submodule references
git addsubmodulegit commit -m 'update submodule references'git push --recurse-submodules=on-demand origin master
git submodule add <GIT URL>git submodule update --remote
git submodule init && \
git submodule update --remote
git mv submodule_folder new_submodule_folder
git status
git commit -m 'move submodules'You might end up with this status message after modules are moved
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
adminer-httpd-ldap-ssh-c7/
c7/
dkw-httpd-ldap-ssh-c7/
dpl7/
httpd-ldap-ssh-c7/
ldap-ssh-c7/
mro-ldap-ssh-c7/
pg-ldap-ssh-c7/
rpkgs-mro-ldap-ssh-c7/
rss-mro-ldap-ssh-c7/
shy-mro-ldap-ssh-c7/
nothing added to commit but untracked files present (use "git add" to track)To resolve this, you just need to remove the folders listed in untracked files. You can do this with oneline using:
git ls-files --others --exclude-standard | xargs rm -rfscripts and stuff for the docker containers
install.R: Script to install packages (used by docker containers)docker-compose.yml:docker-compose up -dto spin up all the containersbuild.sh: script to built the containers properly, call this script from within one of the submodule folders../build.shgettin_docker_running_centos_7: ???
This repository uses git submodules
Note: docker-compose uses the folder it is in as a prefix for container names. Caused an error with the networking. So the dockerimages repository name is really important here.
clonethis repository and pull down the submodules:
git clone [email protected]:bi-sdal/dockerimages.git
cd dockerimages
git submodule init && git submodule updateassumes you want to update the checkout to the master branch
git submodule update --remote --merge
git diff --submodule
git submodule foreach git pull origin master
git submodule foreach git checkout master && \
git submodule foreach git pull origin master && \
git pull origin mastergit pull --recurse-submodules=yes origin mastergit push --recurse-submodules=on-demand origin master
| Container | Status |
|---|---|
| mro-ldap-ssh-c7 | |
| mro3.3.3-ldap-ssh-c7 | |
| pg-ldap-ssh-c7 | |
| rss-mro-ldap-ssh-c7 | |
| adm-ngx-ldap-ssh-c7 | |
| adminer-httpd-ldap-ssh-c7 | |
| dkw-httpd-ldap-ssh-c7 | |
| dkw-ngx-ldap-ssh-c7 |
| Container | Status |
|---|---|
| c7 | |
| ldap-ssh-c7 | |
| ngx-ldap-ssh-c7 | |
| httpd-ldap-ssh-c7 |
