Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fakeroot to dockerfile = successful building on gitpod.io #2371

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 12 additions & 5 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
FROM gitpod/workspace-full-vnc:latest

RUN dpkg --add-architecture i386
RUN apt-get update && apt-get -y install cabextract libxext6 libxext6:i386 libfreetype6 libfreetype6:i386
FROM gitpod/workspace-full-vnc:branch-pr-349

USER root
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends -o APT::Immediate-Configure=0 \
cabextract=1.* \
libxext6=2* \
libxext6:i386 \
libfreetype6=2.10* \
libfreetype6:i386=2.10* \
fakeroot=1.24* \
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

USER gitpod

# activate java 11. It's already installed in the base image.
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && sdk install java"
5 changes: 3 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ tasks:
- init: >
mvn install
command: >
cd phoenicis-javafx/ &&
mvn exec:java
mvn clean package &&
cd phoenicis-dist/src/scripts &&
sh phoenicis-create-package.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

This way you can only build the package but not run it to test your code changes (which should be the main purpose for gitpod).