-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from ARTbio/xenial_1805-09
Xenial / 1805 for test environments and for docker builds
- Loading branch information
Showing
6 changed files
with
21 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: python | ||
python: 2.7 | ||
dist: trusty | ||
dist: xenial | ||
sudo: required | ||
|
||
env: | ||
|
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,28 +1,30 @@ | ||
FROM artbio/ansible-galaxy-os | ||
FROM artbio/ansible-galaxy-os:1604 | ||
|
||
LABEL multi.maintainer_1="Marius van den Beek <[email protected]>" \ | ||
multi.maintainer_2="Christophe Antoniewski <[email protected]>" | ||
LABEL maintainer_2="Christophe Antoniewski <[email protected]>" | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
\ | ||
\ | ||
echo "===> Allow start of services" && \ | ||
echo "exit 0" > /usr/sbin/policy-rc.d && \ | ||
\ | ||
apt-get install -y --no-install-recommends \ | ||
apt-get install -qq --no-install-recommends \ | ||
apt-transport-https software-properties-common | ||
|
||
RUN apt-get install sudo -o Dpkg::Options::="--force-confold" | ||
|
||
ONBUILD RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
echo "===> Updating TLS certificates..." && \ | ||
apt-get install -y openssl ca-certificates | ||
|
||
COPY . /setup | ||
WORKDIR /setup | ||
|
||
RUN sed -i -e 's/^# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen | ||
|
||
ENV LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 | ||
LANG=en_US.UTF-8 | ||
|
||
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales | ||
# work around for AUFS bug | ||
# as per https://github.com/docker/docker/issues/783#issuecomment-56013588 | ||
RUN mkdir /etc/ssl/private-copy /var/lib/postgresql-copy && \ | ||
|
@@ -31,12 +33,15 @@ RUN mkdir /etc/ssl/private-copy /var/lib/postgresql-copy && \ | |
rm -R /var/lib/postgresql /etc/ssl/private/ && \ | ||
mv /var/lib/postgresql-copy /var/lib/postgresql && \ | ||
mv /etc/ssl/private-copy /etc/ssl/private && \ | ||
chmod 0700 /var/lib/postgresql /etc/ssl/private && \ | ||
chmod -R 0700 /var/lib/postgresql /etc/ssl/private && \ | ||
chown -R 1550:1550 /var/lib/postgresql /var/run/postgresql \ | ||
/var/log/postgresql /etc/ssl/private /etc/postgresql | ||
|
||
RUN echo $(ansible --version) | ||
RUN echo 'root ALL=(ALL:ALL) ALL' >> /etc/sudoers && echo 'postgres ALL=(ALL:ALL) ALL' >> /etc/sudoers | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Warning: The following requirements pull down requires an ansible-galaxy-os compatible with ubuntu-xenial and postgresql 9.5 | ||
# see for instance https://github.com/ARTbio/ansible-galaxy-os/tree/ubuntu-xenial, if not already merged | ||
RUN ansible-galaxy install -r requirements_roles.yml -p roles -f && \ | ||
ansible-playbook -i inventory_files/docker -c local galaxy.yml | ||
|
||
|
@@ -46,7 +51,6 @@ NAT_MASQUERADE=false | |
|
||
ONBUILD WORKDIR /setup | ||
ONBUILD COPY . /setup | ||
|
||
ADD startup.sh /startup.sh | ||
RUN chmod +x /startup.sh | ||
|
||
|
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