-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract workspace-base from workspace-full
- Loading branch information
Showing
12 changed files
with
145 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
FROM buildpack-deps:focal | ||
|
||
COPY install-packages /usr/bin | ||
|
||
### base ### | ||
RUN yes | unminimize \ | ||
&& install-packages \ | ||
zip \ | ||
unzip \ | ||
bash-completion \ | ||
build-essential \ | ||
ninja-build \ | ||
htop \ | ||
jq \ | ||
less \ | ||
locales \ | ||
man-db \ | ||
nano \ | ||
software-properties-common \ | ||
sudo \ | ||
time \ | ||
vim \ | ||
multitail \ | ||
lsof \ | ||
ssl-cert \ | ||
&& locale-gen en_US.UTF-8 | ||
|
||
ENV LANG=en_US.UTF-8 | ||
|
||
### Git ### | ||
RUN add-apt-repository -y ppa:git-core/ppa \ | ||
&& install-packages git | ||
|
||
### Gitpod user ### | ||
# '-l': see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user | ||
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod \ | ||
# passwordless sudo for users in the 'sudo' group | ||
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers | ||
ENV HOME=/home/gitpod | ||
WORKDIR $HOME | ||
# custom Bash prompt | ||
RUN { echo && echo "PS1='\[\e]0;\u \w\a\]\[\033[01;32m\]\u\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\] \\\$ '" ; } >> .bashrc | ||
|
||
### Gitpod user (2) ### | ||
USER gitpod | ||
# use sudo so that user does not get sudo usage info on (the first) login | ||
RUN sudo echo "Running 'sudo' for Gitpod: success" && \ | ||
# create .bashrc.d folder and source it in the bashrc | ||
mkdir /home/gitpod/.bashrc.d && \ | ||
(echo; echo "for i in \$(ls \$HOME/.bashrc.d/*); do source \$i; done"; echo) >> /home/gitpod/.bashrc |
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,30 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
|
||
if [ $# = 0 ]; then | ||
echo >&2 "No packages specified" | ||
exit 1 | ||
fi | ||
|
||
DEBIAN_FRONTEND=noninteractive | ||
|
||
DAZZLE_MARKS="/var/lib/apt/dazzle-marks/" | ||
TIMESTAMP=$(date +%s) | ||
|
||
if [ ! -d "${DAZZLE_MARKS}" ]; then | ||
mkdir -p "${DAZZLE_MARKS}" | ||
fi | ||
|
||
apt-get update | ||
apt-get install -yq --no-install-recommends $@ | ||
|
||
cp /var/lib/dpkg/status "${DAZZLE_MARKS}/${TIMESTAMP}.status" | ||
|
||
apt-get clean -y | ||
|
||
rm -rf \ | ||
/var/cache/debconf/* \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* \ | ||
/var/tmp/* |
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
FROM gitpod/workspace-full | ||
|
||
|
||
ENV PATH=/usr/lib/dart/bin:$PATH | ||
|
||
USER root | ||
|
||
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \ | ||
apt-get update && \ | ||
apt-get -y install build-essential dart libkrb5-dev gcc make && \ | ||
apt-get clean && \ | ||
apt-get -y autoremove && \ | ||
apt-get -y clean && \ | ||
rm -rf /var/lib/apt/lists/*; | ||
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& curl -fsSL https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list \ | ||
&& install-packages build-essential dart libkrb5-dev gcc make |
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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
FROM gitpod/workspace-full-vnc | ||
|
||
|
||
ENV ANDROID_HOME=/home/gitpod/android-sdk-linux \ | ||
FLUTTER_HOME=/home/gitpod/flutter \ | ||
PATH=/usr/lib/dart/bin:$FLUTTER_HOME/bin:$ANDROID_HOME/tools:$PATH | ||
|
||
USER root | ||
|
||
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \ | ||
apt-get update && \ | ||
apt-get -y install build-essential dart libkrb5-dev gcc make gradle android-tools-adb android-tools-fastboot && \ | ||
apt-get clean && \ | ||
apt-get -y autoremove && \ | ||
apt-get -y clean && \ | ||
rm -rf /var/lib/apt/lists/*; | ||
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& curl -fsSL https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list \ | ||
&& install-packages build-essential dart libkrb5-dev gcc make gradle android-tools-adb android-tools-fastboot | ||
|
||
USER gitpod | ||
|
||
RUN cd /home/gitpod && wget -qO flutter_sdk.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz \ | ||
&& tar -xvf flutter_sdk.tar.xz && rm flutter_sdk.tar.xz && \ | ||
wget -qO android_studio.zip https://dl.google.com/dl/android/studio/ide-zips/3.3.0.20/android-studio-ide-182.5199772-linux.zip && \ | ||
unzip android_studio.zip && rm -f android_studio.zip && \ | ||
wget --output-document=android-sdk.tgz --quiet http://dl.google.com/android/android-sdk_r26.1.1-linux.tgz && tar -xvf android-sdk.tgz && rm android-sdk.tgz; | ||
RUN cd /home/gitpod \ | ||
&& wget -qO flutter_sdk.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz \ | ||
&& tar -xvf flutter_sdk.tar.xz && rm flutter_sdk.tar.xz \ | ||
&& wget -qO android_studio.zip https://dl.google.com/dl/android/studio/ide-zips/3.3.0.20/android-studio-ide-182.5199772-linux.zip \ | ||
&& unzip android_studio.zip && rm -f android_studio.zip \ | ||
&& wget --output-document=android-sdk.tgz --quiet http://dl.google.com/android/android-sdk_r26.1.1-linux.tgz \ | ||
&& tar -xvf android-sdk.tgz && rm android-sdk.tgz |
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
Oops, something went wrong.
Could this line of code be failing somehow? Perhaps a permission issue? I am trying to find the root cause of an apache bug that just appeared in all my projects.