Gitpod: Would you add libGL.so.1 to the container?

Created on 11 Apr 2019  路  5Comments  路  Source: gitpod-io/gitpod

https://github.com/alifelab/alife_book_src/blob/master/chap02/gray_scott.py

When I run this code, I cannot use this because I cannot install libGL.so.1.
If possible, would you add this library?

All 5 comments

Hi @hidehiro98, thank you for reaching out!

You can easily install new dependencies by adding configuration files like these to your repository:

.gitpod.yml:

image:
  file: .gitpod.dockerfile

.gitpod.dockerfile:

FROM gitpod/workspace-full-vnc

RUN sudo apt-get update \
 && sudo apt-get install -y libgl1 \
 && rm -rf /var/lib/apt/lists/*

(Note: I assume that you'll need a graphical environment, so I picked the base image gitpod/workspace-full-vnc, which includes a X11 server and a web-based VNC client that allows you to view and interact with graphical applications).

See also:

Hi @hidehiro98 ,

you can add it to the .gitpod.yml for your project yourself: Just add a .gitpod.yml with these contents:

image:
  file: .gitpod.dockerfile

and a .gitpod.dockerfile like so:

FROM gitpod/workspace-full-vnc

RUN apt-get update && apt-get install -yq \
        libgl1-mesa-glx \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*

After you pushed the change, just re-open your project in a Gitpod and it should be there!

Wow, thank you very much both @jankeromnes @geropl, I'll try this later!

@jankeromnes @geropl, it worked! Thank you so much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mouse484 picture mouse484  路  3Comments

Kreyren picture Kreyren  路  3Comments

iksaif picture iksaif  路  3Comments

kittaakos picture kittaakos  路  3Comments

ColbyWTaylor picture ColbyWTaylor  路  3Comments