Skip to content
Snippets Groups Projects
Verified Commit f4ef167a authored by Radim Janča's avatar Radim Janča :speech_balloon:
Browse files

Init commit

parents
No related branches found
No related tags found
No related merge requests found
stages:
- lint
- test-build
- build
docker-file-lint:
image:
name: replicated/dockerfilelint
entrypoint: [""]
stage: lint
script:
- /dockerfilelint/bin/dockerfilelint Dockerfile
test-build-cofolla-toolbox:
stage: test-build
image: docker:latest
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE/toolbox" .
except:
- master
build-cofolla-toolbox:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE/toolbox" .
- docker push "$CI_REGISTRY_IMAGE/toolbox"
only:
- master
FROM centos:7
LABEL Description="cofolla-toolbox"
RUN yum install -y epel-release && yum -y update && yum install -y \
vim wget telnet bind-utils tcpdump bash-completion bash-completion-extras \
krb5-workstation \
crudini gcc gdisk git jq libffi-devel libxml2-devel libxslt-devel make \
mariadb mariadb-devel openssh-clients openssl-devel python-devel \
&& yum clean all \
&& rm -rf /var/cache/yum
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python get-pip.py \
&& rm get-pip.py
RUN pip --no-cache-dir install --upgrade virtualenv \
&& virtualenv --system-site-packages /opt/ansible
ENV PATH /opt/ansible/bin:$PATH
RUN pip --no-cache-dir install --upgrade ansible==2.6.3.0 "cmd2<0.9.0" influxdb MySQL-python \
os-client-config==1.29.0 pbr==4.0.0 pymongo python-openstackclient==3.14.0 python-heatclient==1.16.0 pytz pyudev shade==1.27.1 \
&& mkdir -p /etc/ansible /usr/share/ansible \
&& echo 'localhost ansible_connection=local ansible_python_interpreter=/opt/ansible/bin/python' > /etc/ansible/hosts \
&& sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' /opt/ansible/lib/python2.7/site-packages/os_client_config/defaults.json \
&& /opt/ansible/bin/openstack complete | tee /etc/bash_completion.d/osc.bash_completion > /dev/null
ENV ANSIBLE_LIBRARY /usr/share/ansible:$ANSIBLE_LIBRARY
RUN useradd -ms /bin/bash cofolla
USER cofolla
WORKDIR /home/cofolla/cofolla_repo
# cofolla_toolbox
Docker image generator for Cofolla project and compatible OpenStack management.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment