Loading .gitlab-ci.yml +5 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,11 @@ dockerize_rabbitmq: variables: IMAGE_NAME: rabbitmq dockerize_vos_ts_base: <<: *docker-build-template variables: IMAGE_NAME: vos_ts_base dockerize_transfer_service: <<: *docker-build-template variables: Loading base/Dockerfile 0 → 100644 +19 −0 Original line number Diff line number Diff line # Use CentOS 7 as base image FROM centos:7 # Install epel repo RUN yum update -y && yum -y install epel-release # Install make, nano, openssh and wget RUN yum -y install make nano openssh-clients wget # Install python 3.9.1 RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \ wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz && \ tar xzf Python-3.9.1.tgz && \ cd Python-3.9.1 && \ ./configure --enable-optimizations && \ make altinstall && cd .. && rm Python-3.9.1.tgz # Install pika, redis, psycopg2 and paramiko Python packages RUN pip3.9 install --no-cache-dir pika redis psycopg2-binary paramiko No newline at end of file docker-compose.yml +3 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,9 @@ services: - "15672:15672" stdin_open: true tty: true vos_ts_base: image: git.ia2.inaf.it:5050/ia2/vospace-transfer-service/vos_ts_base build: ./base transfer_service: image: git.ia2.inaf.it:5050/ia2/vospace-transfer-service/transfer_service build: ./transfer_service Loading transfer_service/Dockerfile +3 −23 Original line number Diff line number Diff line # Use CentOS 7 as base image FROM centos:7 # Use 'vos-ts-base' as base image FROM git.ia2.inaf.it:5050/ia2/vospace-transfer-service/vos_ts_base # Create a new user called transfer_service, create the home directory and set the default shell RUN useradd -m -s /bin/bash transfer_service Loading @@ -18,26 +18,6 @@ COPY wait-for-it.sh *.py vos_ts.conf ./ RUN chown transfer_service wait-for-it.sh *.py && \ chmod 755 wait-for-it.sh *.py # Install epel repo RUN yum update -y && yum -y install epel-release # Install make, nano, openssh and wget RUN yum -y install make nano openssh-clients wget # Install python 3.9.1 RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \ wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz && \ tar xzf Python-3.9.1.tgz && \ cd Python-3.9.1 && \ ./configure --enable-optimizations && \ make altinstall && cd .. && rm Python-3.9.1.tgz # Install pika, redis, psycopg2 and paramiko Python packages RUN pip3.9 install --no-cache-dir pika redis psycopg2-binary paramiko # Run commands as transfer_service user #USER transfer_service # Create a 'store' directory with some files for various users RUN mkdir /home/transfer_service/store && touch /home/transfer_service/store/foo1.txt && \ chown -R transfer_service:transfer_service /home/transfer_service/store && \ Loading Loading
.gitlab-ci.yml +5 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,11 @@ dockerize_rabbitmq: variables: IMAGE_NAME: rabbitmq dockerize_vos_ts_base: <<: *docker-build-template variables: IMAGE_NAME: vos_ts_base dockerize_transfer_service: <<: *docker-build-template variables: Loading
base/Dockerfile 0 → 100644 +19 −0 Original line number Diff line number Diff line # Use CentOS 7 as base image FROM centos:7 # Install epel repo RUN yum update -y && yum -y install epel-release # Install make, nano, openssh and wget RUN yum -y install make nano openssh-clients wget # Install python 3.9.1 RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \ wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz && \ tar xzf Python-3.9.1.tgz && \ cd Python-3.9.1 && \ ./configure --enable-optimizations && \ make altinstall && cd .. && rm Python-3.9.1.tgz # Install pika, redis, psycopg2 and paramiko Python packages RUN pip3.9 install --no-cache-dir pika redis psycopg2-binary paramiko No newline at end of file
docker-compose.yml +3 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,9 @@ services: - "15672:15672" stdin_open: true tty: true vos_ts_base: image: git.ia2.inaf.it:5050/ia2/vospace-transfer-service/vos_ts_base build: ./base transfer_service: image: git.ia2.inaf.it:5050/ia2/vospace-transfer-service/transfer_service build: ./transfer_service Loading
transfer_service/Dockerfile +3 −23 Original line number Diff line number Diff line # Use CentOS 7 as base image FROM centos:7 # Use 'vos-ts-base' as base image FROM git.ia2.inaf.it:5050/ia2/vospace-transfer-service/vos_ts_base # Create a new user called transfer_service, create the home directory and set the default shell RUN useradd -m -s /bin/bash transfer_service Loading @@ -18,26 +18,6 @@ COPY wait-for-it.sh *.py vos_ts.conf ./ RUN chown transfer_service wait-for-it.sh *.py && \ chmod 755 wait-for-it.sh *.py # Install epel repo RUN yum update -y && yum -y install epel-release # Install make, nano, openssh and wget RUN yum -y install make nano openssh-clients wget # Install python 3.9.1 RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \ wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz && \ tar xzf Python-3.9.1.tgz && \ cd Python-3.9.1 && \ ./configure --enable-optimizations && \ make altinstall && cd .. && rm Python-3.9.1.tgz # Install pika, redis, psycopg2 and paramiko Python packages RUN pip3.9 install --no-cache-dir pika redis psycopg2-binary paramiko # Run commands as transfer_service user #USER transfer_service # Create a 'store' directory with some files for various users RUN mkdir /home/transfer_service/store && touch /home/transfer_service/store/foo1.txt && \ chown -R transfer_service:transfer_service /home/transfer_service/store && \ Loading