Skip to main content

Installing packages with apt-get on gitpod

Until recently I did not know that I could install packages with apt-get on gitpod as it always wanted me to have root permissions, here is how it should be done.
If you are using a public git repository make sure you have push permissions to the repository or fork the repository unless you are the real owner of the repository. Now you probably should be already aware that there is an actual `Browser Extension` for chrome and Mozilla, if not you should install that to make things easy instead of editing the URL(appending gitpod.io/#) all the time to open the repository in gitpod.
After you open the repository in gitpod run the below command
>> gp init
This will generate .gitpod.yml and .gitpod.Dockerfile files. Now modify the docker file something like below( for install redis-server in my case)
FROM gitpod/workspace-full
USER gitpod
RUN sudo apt-get update -q && \
    sudo apt-get install -yq redis-server



Then make sure you commit both the files and push them back to the repository.
Close the existing gitpod workspace and relaunch the workspace by going to the actual repository in GitHub with the latest commit. This should start installing the packages and open the workspace.
You can read more about this here at Installing missing packages
Alternatively, you can also install packaged with brew install <PackageName>.

Comments

Popular posts from this blog

Reasons not to buy Akaso action camera if you are from india

Recently I made a full review of the action camera I brought after doing a ton of research and time. Having used it for a couple of months I feel extremely glad that it meets up to my expectations. But recently, I accidentally tipped off the camera without an external case and it cracked my lens. This, in turn, added a shady spot on my phone or video and I cannot use that anymore (Some phones of the cracked lens below)     I immediately mailed the akaso team to ask if there is anything they could do but unfortunately, this was their response. Oops, that was not what I was expecting and then I asked them I could get any details of the replacement parts or anything like that so that I can order it online. But that didn't happen it took a lot of time for them to respond me back(I have been bugging them on Facebook and email).  But after some time they left me with this response which I had no other choice but to accept. After getting the 50%re...

Facebook Whitehat

Have you ever wondered that Facebook provides you some test accounts in case if you are trying to find some bugs are attempting to attacks on some personal accounts. So its quiet interesting, lets take a look at them now just login to your Facebook account.. and then go to this link.. Facebook whitehat Then you may find out 4 sections in the page 1-Info            This basically provides you all the security related issues for Facebook and even provides you the opportunity to report the posts that are against the terms and conditions and violating the security issues.. Here are some links that might be important.. In case of any hacked accounts :  Hacking reports Abuse reports :  Report abuse 2-Thanks                The names are those who reported Facebook some bugs and helped Facebook for making their security issues more strong 3-Report a Security vulnerability     ...

Extjs - basics on file-system

Hope you created your first project with command prompt and knew some basics of where the application starts loading files and makes up the complete interface and functionalities. if not I recommend you to start from the initial step and come back here. So when you start your project on a desktop it will check for the main file in the classic folder and shows it to the user.   classic > src > view > main > Main.js Now let's start with this Main.js file and understand better about the project. This main file basically has some extended components  Ext.tab.Panel which extends the main page view to have a tab panel view in it. requires has all the other components that are being used in this page as components. Header of the side tab has all the properties such as layout that defines what should be the layout for the header which is aligned to stretchmax, and the title which is being binded which a data feild named name where the name is from ...