Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,29 @@ RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:cwchien/gradle
RUN apt-get update && \
apt install --reinstall -y software-properties-common && \
add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y git \
ssh \
tar \
gzip \
ca-certificates \
openjdk-8-jdk \
gradle \
python2.7 \
python-pip \
zlib1g-dev
RUN apt-get install -y openjdk-11-jdk && \
apt-get purge -y openjdk-8-jdk
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the purpose of installing then purging later?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, its this deeky issue with java11 and gradle. If you dont do that, Gradle doesnt work correctly. Can't remember the exact issue

RUN apt-get install -y gradle
RUN pip install cookiecutter \
tox
RUN cd ~ && \
wget https://github.com/wpilibsuite/allwpilib/releases/download/v2019.1.1/WPILib_Linux-2019.1.1.tar.gz && \
mkdir frc2019 && \
tar xf WPILib_Linux-2019.1.1.tar.gz -C ~/frc2019 && \
cd frc2019/tools && \
python ToolsUpdater.py && \
cd ~
RUN git config --global user.name "Team 5499 Testing Image" && \
git config --global user.email "<>"