Skip to content

Instantly share code, notes, and snippets.

@real420og
Last active November 29, 2020 20:53
Show Gist options
  • Save real420og/ef40fb1adafdb444d8e9c4bb277bce44 to your computer and use it in GitHub Desktop.
Save real420og/ef40fb1adafdb444d8e9c4bb277bce44 to your computer and use it in GitHub Desktop.
dockerfile upsource with php composer
FROM jetbrains/upsource:2020.1.1815
USER root
RUN apt-get update -y && apt-get install -y php
RUN apt-get install -y vim
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c31c1e292ad7be5f49291169c0ac8f683499edddcfd4e42232982d0fd193004208a58ff6f353fde0012d35fdd72bc394') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php --install-dir=bin --filename=composer && \
php -r "unlink('composer-setup.php');"
RUN apt-get install -y unzip php-zip
ADD cert/ /home/jetbrains/.ssh/
RUN chmod -R 600 /home/jetbrains/.ssh/
RUN ssh-keygen -y -f /home/jetbrains/.ssh/id_rsa > /home/jetbrains/.ssh/id_rsa.pub
RUN chown -R jetbrains /home/jetbrains/.ssh/
RUN chgrp -R jetbrains /home/jetbrains/.ssh/
RUN chmod 700 /home/jetbrains/.ssh/
USER jetbrains
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment