Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semaphore can't use ansible.posix.synchronize because rsync is missing in the Docker container #1564

Closed
ziermmar opened this issue Oct 12, 2023 · 7 comments

Comments

@ziermmar
Copy link

Using the provided image: semaphoreui/semaphore, one can't use the module ansible.posix.synchronize out of the box.

ansible.posix.synchronize is just a wrapper around rsync, which is missing in the image

@ziermmar
Copy link
Author

ziermmar commented Oct 12, 2023

I just noticed, similar dependency issues are already being discussed and addressed in #1498, however rsync is not a python library dependency

@Zen3515
Copy link

Zen3515 commented Jan 10, 2024

It would probably be fixed by just adding rsync here

RUN apk add --no-cache sshpass git curl ansible mysql-client openssh-client-default tini py3-aiohttp && \
    adduser -D -u 1001 -G root semaphore && \
    mkdir -p /tmp/semaphore && \
    mkdir -p /etc/semaphore && \
    mkdir -p /var/lib/semaphore && \
    chown -R semaphore:0 /tmp/semaphore && \
    chown -R semaphore:0 /etc/semaphore && \
    chown -R semaphore:0 /var/lib/semaphore

I'll probably open PR myself if it doesn't get fix by the end of this month.

EDIT: Just saw your PR, it's so sad that it doesn't get merged

@tboerger
Copy link
Collaborator

tboerger commented Mar 2, 2024

The rsync package have been already added, this should work with a current version.

@tboerger tboerger closed this as completed Mar 2, 2024
@Apollo3zehn
Copy link

I still get errors like FAILED! => {"changed": false, "msg": "Failed to find required executable \"rsync\" in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"} with version v2.9.64 from hub.docker.com.

Is it because this line does not contain a reference to rsync?

RUN apk add --no-cache sshpass git curl ansible mysql-client openssh-client-default tini py3-aiohttp tzdata && \

@tboerger
Copy link
Collaborator

Yeah there is a drift between the images, we need to get this straight.

@AirOne01
Copy link

AirOne01 commented May 2, 2024

Hey. How is this going?

@tboerger
Copy link
Collaborator

tboerger commented May 8, 2024

It is part of the develop tag now and will be soon part of the next version.

@tboerger tboerger closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants