-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: master
Are you sure you want to change the base?
Conversation
7eedd56
to
ec4c4d2
Compare
@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. |
f861147
to
c97b435
Compare
c97b435
to
8ed0cbb
Compare
* Edit `~/.ssh/environment` to contain following vars: | ||
``` | ||
DISTCC_CMDLIST_NUMWORDS=1 | ||
DISTCC_CMDLIST=/home/<user>/.distcc/DISTCC_CMDLIST |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.