Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Ubuntu20 Dockerfile #103

Open
Isma399 opened this issue May 23, 2022 · 0 comments
Open

Ubuntu20 Dockerfile #103

Isma399 opened this issue May 23, 2022 · 0 comments

Comments

@Isma399
Copy link

Isma399 commented May 23, 2022

Hello,
I try a pull request but got Acess Denied.
Is it possible to add support for Ubuntu20?
Example of Dockerfile :

FROM ubuntu:20.04

# Ansible Runner Version
ARG ANSIBLE_RUNNER_VERSION="1.4.6"
ARG SERVICE_DIR="/root/ansible-runner-service"

# RPM package list
ARG DEB_PKGS="\
              wget unzip nginx supervisor python3-psutil \
              python3-pexpect python3-daemon  bubblewrap gcc \
              bzip2  python3 python3-pip python3-dev vim \
              python3-setuptools locales locales-all \
"
ARG PIP_PKGS="\
              ansible cryptography docutils psutil PyYAML \
              pyOpenSSL flask flask-restful uwsgi netaddr notario \
"

# APT Install Dependencies
RUN DEBIAN_FRONTEND="noninteractive" apt update && apt-get -y install tzdata
RUN apt update \
    && apt-get install -y ${DEB_PKGS}

RUN /usr/bin/python3 -m pip install ${PIP_PKGS} \
    && /usr/bin/python3 -m \
          pip install --no-cache-dir ansible-runner==${ANSIBLE_RUNNER_VERSION} \
    && echo

# Prepare folders for shared access and ssh
RUN mkdir -p /etc/ansible-runner-service && \
    mkdir -p /root/.ssh && \
    mkdir -p /usr/share/ansible-runner-service/artifacts && \
    mkdir -p usr/share/ansible-runner-service/env && \
    mkdir -p usr/share/ansible-runner-service/project && \
    mkdir -p usr/share/ansible-runner-service/inventory && \
    mkdir -p usr/share/ansible-runner-service/client_cert

# Install Ansible Runner
COPY ./*.py ${SERVICE_DIR}/
COPY ./*.yaml ${SERVICE_DIR}/
COPY ./runner_service ${SERVICE_DIR}/runner_service
COPY ./samples {SERVICE_DIR}/samples

# Put configuration files in the right places
# Nginx configuration
COPY misc/nginx/nginx.conf /etc/nginx/
# Ansible Runner Service nginx virtual server
COPY misc/nginx/ars_site_nginx.conf /etc/nginx/conf.d
# Ansible Runner Service uwsgi settings
COPY misc/nginx/uwsgi.ini ${SERVICE_DIR}
# Supervisor start sequence
COPY misc/nginx/supervisord.conf ${SERVICE_DIR}

EXPOSE 5001
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Start services
CMD ["/usr/bin/supervisord", "-c", "/root/ansible-runner-service/supervisord.conf"]

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant