forked from eclipse-cdt/cdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CDT's container to run all code cleanliness checks
We need a new docker container for GitHub that runs as the same uid that GitHub actions uses so permissions all work correctly.
- Loading branch information
1 parent
24d9bd1
commit 46e37c6
Showing
8 changed files
with
53 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This directory contains dockerfiles for complete CDT Infra + Eclipse Installations for running on GitHub Actions |
25 changes: 25 additions & 0 deletions
25
docker/cdt-infra-plus-eclipse-install-github/ubuntu-18.04/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# The contents of this file are similar to cdt-infra-plus-eclipse-install/*/Dockerfile | ||
# because we don't want to share layers otherwise the change in permissions (1000 -> 1001) | ||
# causes an additional layer to be created in Docker, adding 300MB+ to download | ||
# size on each run | ||
|
||
ENV HOME=/home/vnc | ||
RUN apt-get update | ||
RUN apt-get install -y curl tar gzip | ||
#Eclipse SDK & Fix permissions for GitHub Actions | ||
RUN mkdir -p ${HOME}/buildtools && cd ${HOME}/buildtools \ | ||
&& curl -sL https://download.eclipse.org/eclipse/downloads/drops4/R-4.31-202402290520/eclipse-SDK-4.31-linux-gtk-x86_64.tar.gz | tar xvz \ | ||
&& mv eclipse eclipse-SDK-4.31 \ | ||
&& chown -R 1001:0 ${HOME} \ | ||
&& chmod -R g+rwX ${HOME} | ||
|
||
FROM cdt-infra-eclipse-full:ubuntu-18.04 | ||
USER root | ||
|
||
COPY --from=0 ${HOME}/buildtools ${HOME}/buildtools | ||
|
||
USER 1001 | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters