Skip to content

Commit

Permalink
test ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 13, 2023
1 parent 3dc5b71 commit bf7fdc6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/alfresco/variables.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alfresco",
"trademark": "Alfresco",
"release": true,
"release": false,
"fork_url": "https://docs.alfresco.com/content-services/latest/install/containers/docker-compose",
"edition": [
{
Expand Down
35 changes: 12 additions & 23 deletions apps/ansible/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# refer to:
# refer to: https://learn.microsoft.com/en-us/azure/developer/ansible/configure-in-docker-container
# image: https://github.com/orgs/ansible-community/packages/container/package/community-ee-base
# docs1: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-ansible-to-containers
# docs2: https://learn.microsoft.com/en-us/azure/developer/ansible/configure-in-docker-container

FROM ghcr.io/ansible-community/community-ee-base:latest

Expand All @@ -11,29 +12,17 @@ USER root

WORKDIR "/ansible/project"

RUN yum check-update; \
yum install -y gcc libffi-devel python3 epel-release; \
yum install -y python3-pip; \
yum install -y wget; \
yum install -y openssl; \
yum install -y vim; \
yum install -y yum-utils \
yum install -y jq \
yum install -y unzip \
yum install -y curl \
yum clean all

RUN pip3 install --upgrade pip; \
pip3 install --upgrade virtualenv; \
pip3 install pywinrm[kerberos]; \
pip3 install pywinrm; \
pip3 install jmspath; \
pip3 install requests; \

# download template of role, it's to run the tasks of you want to test -- need transfer
# RUN git clone https://github.com/Websoft9/role_template
RUN yum check-update && \
yum install -y gcc libffi-devel wget openssl vim yum-utils jq unzip curl && \
yum clean all && \
ln -s $(command -v pip3) /usr/local/bin/pip && \
pip3 install --upgrade pip --no-cache-dir && \
pip3 install --upgrade virtualenv --no-cache-dir && \
pip3 install jmespath --no-cache-dir && \
pip3 install requests --no-cache-dir

VOLUME "/ansible/project"

# Define the entry point for the docker container.
# You may want to change this according to your actual needs.
ENTRYPOINT ["tail", "-f", "/dev/null"]

0 comments on commit bf7fdc6

Please sign in to comment.