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

add distccd docker #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bugobliterator
Copy link
Member

No description provided.

@bugobliterator
Copy link
Member Author

@khancyr can you add a secret DOCKER_PUSH_NAME = ardupilot. This var will allow forks to make releases on there docker account as well via github actions.

* Edit `~/.ssh/environment` to contain following vars:
```
DISTCC_CMDLIST_NUMWORDS=1
DISTCC_CMDLIST=/home/<user>/.distcc/DISTCC_CMDLIST
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't $USER work ?

sudo ufw allow from 172.27.0.0/16 to 172.27.124.34 port 3632 proto tcp
sudo ufw allow from 172.27.0.0/16 to 172.27.124.34 port 3633 proto tcp
```
`172.27.124.34` can be replaced with server IP and `172.27.0.0/16` with subnet you want to allow connection from.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

server ip or the docker network ?


* For debugging on host side simply `export DISTCC_VERBOSE=1`

* There is no ccache on the server side docker, so as to limit the storage consumption on the remote machine. But your local ccache will still be in play even when using `pump`. If one wants, they can create a copy of docker with ccache setup, it should be trivial.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use ccache on the docker image ? we could put a simple 1Go limit if needed


LABEL maintainer="Siddharth Bharat Purohit <[email protected]>"
LABEL author="Siddharth Bharat Purohit <[email protected]>"
LABEL description="A distccd image based on Fedora 29 that I use for distributed compilation of ardupilot"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu ?

ENV HOME=/home/distcc
RUN useradd -s /bin/bash distcc
WORKDIR /home/distcc
RUN wget -O gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that isn't our official toolchain ?

ENV HOME=/home/distcc
RUN useradd -s /bin/bash distcc
WORKDIR /home/distcc
RUN wget -O gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2?revision=108bd959-44bd-4619-9c19-26187abf5225&la=en&hash=E788CE92E5DFD64B2A8C246BBA91A249CB8E2D2D"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

2 participants