Commit 9e3e3ae4 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Reverted changes regarding 'sudo' configuration.

parent 694acba6
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10,8 +10,8 @@ FROM centos:7
# Install epel repo
RUN yum update -y && yum -y install epel-release

# Install make, nano, openssh, wget, rsync, cronie and sudo
RUN yum -y install make nano openssh-clients wget rsync cronie sudo
# Install make, nano, openssh, wget, rsync, and cronie
RUN yum -y install make nano openssh-clients wget rsync cronie

# Install python 3.9.7
RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel zlib-devel && \
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ services:
    - backend_net
    stdin_open: true
    tty: true
    command: ["./wait-for-it.sh", "postgres:5432", "--timeout=30", "--", "sudo", "bash", "start.sh"]
    command: ["./wait-for-it.sh", "postgres:5432", "--timeout=30", "--", "bash", "start.sh"]
  client:
    image: git.ia2.inaf.it:5050/vospace/vospace-transfer-service/client
    build: ./client
+1 −6
Original line number Diff line number Diff line
@@ -7,10 +7,8 @@
# Use 'base' as base image
FROM git.ia2.inaf.it:5050/vospace/vospace-transfer-service/base

# Create a new user called transfer_service, create the home directory, set the default shell
# and add it to /etc/sudoers
# Create a new user called transfer_service, create the home directory and set the default shell
RUN useradd -m -s /bin/bash transfer_service
RUN echo "transfer_service ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

# Test users
RUN useradd -m -s /bin/bash sonia.zorba
@@ -65,8 +63,5 @@ RUN mkdir /home/cristiano.urban/store /home/cristiano.urban/retrieve && \
    chmod -R 755 /home/sonia.zorba/store && \
    chmod -R 755 /home/sonia.zorba/retrieve

# Switch to 'transfer_service' user
USER transfer_service

# Run a shell
CMD /bin/bash