From fba7ea2c9fd6dc73747b148c52e526170870898b Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 21 Jul 2022 06:54:52 -0700 Subject: [PATCH] Add java to installer --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9cc29ec..0dfee6d 100755 --- a/install.sh +++ b/install.sh @@ -10,10 +10,15 @@ cd $MY_PATH # Run the basic setup. python3 "./setup.py" +# Temporary until we get java in the image or java in the WORKSPACE +wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add - +sudo add-apt-repository 'deb https://apt.corretto.aws stable main' + + # OK this stuff here is better in bash, and also is specific to setting up # coder.com instances, so. Add packages that I want in my coder image. sudo apt-get update -sudo apt-get install -y fish +sudo apt-get install -y fish java-common java-1.8.0-amazon-corretto-jdk # NOTE: THIS NEEDS TO BE INSTALLED IN THE BASE IMAGE OR CLANG DON'T RUN # sudo apt-get install -y libtinfo5