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

Update .gitpod.yml to include gitpod dependencies in a mini dockerfile #1685

Merged
merged 7 commits into from Jul 7, 2020

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Jul 7, 2020

Possible solution to fix #1681, building on https://www.gitpod.io/blog/gitpodify/#installing-missing-packages

Adding deps from

- sudo apt-get install xserver-xorg-dev libxext-dev libxi-dev
- sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev

@jywarren jywarren changed the title Update .gitpod.yml Update .gitpod.yml to include gitpod dependencies in a mini dockerfile Jul 7, 2020
@gitpod-io
Copy link

gitpod-io bot commented Jul 7, 2020

@@ -0,0 +1,7 @@
FROM gitpod/workspace-full

USER root
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@nisarhassan12 I'm sorry to bother you but I'm getting this Operation not permitted error and wondered if you knew anything about this? I had to try adding dependencies to match the .travis.yml file because it was missing libxi-dev. I found some references to work from but it doesn't seem to be working.

building base image

initializing base image context
UGit operations complete                       location=/workspace/init
running base image build
Step 1/4 : FROM gitpod/workspace-full
latest: Pulling from gitpod/workspace-full
Digest: sha256:a286eacd645a06c022f03a1edde2d8976877a146fd56e14ecf543418d0a6f3ab
Status: Image is up to date for gitpod/workspace-full:latest
 ---> 8bdab2c1e6e8
Step 2/4 : USER root
 ---> Using cache
 ---> 05cc90489a0d
Step 3/4 : RUN sudo apt-get update  && sudo apt-get install -y     install xserver-xorg-dev libxext-dev libxi-dev build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev  && sudo rm -rf /var/lib/apt/lists/*
 ---> Running in 75fb3e2dfbb5
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
Get:1 https://apt.llvm.org/focal llvm-toolchain-focal InRelease [4,231 B]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:3 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB]
Get:4 https://apt.llvm.org/focal llvm-toolchain-focal/main amd64 Packages [10.6 kB]
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [33.4 kB]
Get:8 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [4,693 B]
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [44.5 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [160 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [1,077 B]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [303 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [155 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [1,077 B]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [33.9 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [2,900 B]
Fetched 1,091 kB in 2s (612 kB/s)
Reading package lists...
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package install



build failed: cannot build base image: The command '/bin/sh -c sudo apt-get update  && sudo apt-get install -y     install xserver-xorg-dev libxext-dev libxi-dev build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev  && sudo rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Error: build failed: cannot build base image: The command '/bin/sh -c sudo apt-get update  && sudo apt-get install -y     install xserver-xorg-dev libxext-dev libxi-dev build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev  && sudo rm -rf /var/lib/apt/lists/*' retu

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah! https://stackoverflow.com/a/38004106:

Because you have an https sources. Install apt-transport-https before executing update.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, now we seem past that Permissions error and are on to:

Reading state information...
E: Unable to locate package install

build failed: cannot build base image: The command '/bin/sh -c sudo apt-get update && apt-get install -y apt-transport-https  && sudo apt-get install -y     install xserver-xorg-dev libxext-dev libxi-dev build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev  && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*' returned a non-zero code: 100

This is odd: see https://askubuntu.com/a/1164538

The reason you are seeing this error is because you are trying to install a package called "install" (next to cmake and libelf-dev). This looks like a simple typo. Just remove it and it should be fixed, because "install" is not a package.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh haha oops: sudo apt-get install -y install

@codecov
Copy link

codecov bot commented Jul 7, 2020

Codecov Report

Merging #1685 into main will increase coverage by 10.30%.
The diff coverage is 63.75%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1685       +/-   ##
===========================================
+ Coverage   55.11%   65.42%   +10.30%     
===========================================
  Files         117      132       +15     
  Lines        2344     2742      +398     
  Branches      360      438       +78     
===========================================
+ Hits         1292     1794      +502     
+ Misses       1052      948      -104     
Impacted Files Coverage Δ
examples/lib/scopeQuery.js 18.51% <ø> (ø)
src/Modules.js 100.00% <ø> (ø)
src/modules/WebglDistort/Module.js 2.29% <0.00%> (ø)
src/ui/SetInputStep.js 12.90% <0.00%> (-1.39%) ⬇️
src/modules/ColorHalftone/Module.js 3.63% <3.63%> (ø)
examples/lib/defaultHtmlStepUi.js 11.35% <4.08%> (-0.85%) ⬇️
examples/lib/intermediateHtmlStepUi.js 11.11% <5.55%> (+0.94%) ⬆️
examples/lib/insertPreview.js 13.15% <20.00%> (-0.36%) ⬇️
src/util/getImageDimensions.js 20.00% <20.00%> (ø)
src/util/isGif.js 20.00% <20.00%> (ø)
... and 100 more

@jywarren
Copy link
Member Author

jywarren commented Jul 7, 2020

Well! Looks like that worked???

@jywarren jywarren merged commit 9179792 into main Jul 7, 2020
@nisarhassan12
Copy link

@jywarren Sorry for the late response. I'm glad you were able to make it work 🙂

@jywarren
Copy link
Member Author

Thank you so much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

although GitPod is building it is not passing tests (though Travis is, or is at least ignoring failed tests).
2 participants