Skip to content

Commit b16e054

Browse files
ADD instructions
1 parent 205ddb6 commit b16e054

File tree

3 files changed

+124
-3
lines changed

3 files changed

+124
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Rest API template developed in Python with the Flask framework. The template cov
3939

4040
## Requirements
4141
- [Python 3.9](https://www.python.org/downloads/)
42-
- [Anaconda/Miniconda](https://www.hostinger.com/tutorials/how-to-install-anaconda-on-ubuntu/)
43-
- [Docker 20.10.17](https://docs.docker.com/engine/install/ubuntu/)
44-
- [Docker-Compose v2.10.2](https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04)
42+
- [Anaconda/Miniconda](instructions/anaconda-miniconda.md)
43+
- [Docker](instructions/docker-dockercompose.md)
44+
- [Docker-Compose v2.10.2](instructions/docker-dockercompose.md)
4545
- [Github](https://github.com)
4646

4747
## Environments

instructions/anaconda-miniconda.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Installing Anaconda or Miniconda on Ubuntu:
2+
## Step 1: Update and download wget
3+
- Update OS:
4+
```shell
5+
sudo apt-get update
6+
```
7+
- Move to the /tmp directory:
8+
```shell
9+
cd /tmp
10+
```
11+
- Install the wget command:
12+
```shell
13+
apt-get install wget
14+
```
15+
## Step 2: Install Anaconda or Miniconda
16+
### Install Anaconda
17+
- Download the Anaconda installer - check version here [Anaconda](https://repo.anaconda.com/archive/):
18+
```shell
19+
https://repo.anaconda.com/archive/
20+
```
21+
- Once the download is complete, verify the hash code integrity of the package:
22+
```shell
23+
sha256sum Anaconda3-2022.05-Linux-x86_64.sh
24+
```
25+
- The output will notify if any errors occurred. If there are no errors, move on to the actual installation step. To continue, run the Anaconda bash shell script:
26+
```shell
27+
bash Anaconda3-2022.05-Linux-x86_64.sh
28+
```
29+
### Install Miniconda - use the following commands consecutively
30+
```shell
31+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
32+
```
33+
```shell
34+
sha256sum Miniconda3-latest-Linux-x86_64.sh
35+
```
36+
```shell
37+
bash Miniconda3-latest-Linux-x86_64.sh
38+
```
39+
## Step 3: Test the Connection
40+
- With the installation done, the next step is to activate the added environment settings using the following command:
41+
```shell
42+
source ~/.bashrc
43+
```
44+
- Then, test out the connection:
45+
```shell
46+
conda info
47+
```
48+
## Uninstalling Anaconda
49+
- In order to uninstall Anaconda, install the following anaconda-clean package:
50+
```shell
51+
conda install anaconda-clean
52+
```
53+
- Lastly, remove all Anaconda-related files and directories:
54+
```shell
55+
anaconda-clean
56+
```
57+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Install Docker Engine on Ubuntu
2+
3+
## Set up the repository
4+
- Update the apt package index and install packages to allow apt to use a repository over HTTPS:
5+
```shell
6+
sudo apt-get update
7+
sudo apt-get install ca-certificates curl gnupg
8+
```
9+
- Add Docker’s official GPG key:
10+
```shell
11+
sudo install -m 0755 -d /etc/apt/keyrings
12+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
13+
sudo chmod a+r /etc/apt/keyrings/docker.gpg
14+
```
15+
- Use the following command to set up the repository:
16+
```shell
17+
echo \
18+
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
19+
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
20+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
21+
```
22+
## Install Docker Engine
23+
- Update the apt package index:
24+
```shell
25+
sudo apt-get update
26+
```
27+
- Install Docker Engine:
28+
```shell
29+
sudo apt install docker-ce
30+
```
31+
- Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running:
32+
```shell
33+
sudo systemctl status docker
34+
```
35+
## Executing the Docker Command Without Sudo
36+
- If you want to avoid typing sudo whenever you run the docker command, add your username to the docker group:
37+
```shell
38+
sudo usermod -aG docker ${USER}
39+
```
40+
- To apply the new group membership, log out of the server and back in, or type the following:
41+
```shell
42+
su - ${USER}
43+
```
44+
You will be prompted to enter your user’s password to continue.
45+
- Confirm that your user is now added to the docker group by typing:
46+
```shell
47+
id -nG
48+
```
49+
## Installing Docker Compose
50+
- Check the [current release](https://github.com/docker/compose/releases) and if necessary, update it in the command below:
51+
```shell
52+
sudo curl -L https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
53+
```
54+
- Next set the permissions:
55+
```shell
56+
sudo chmod +x /usr/local/bin/docker-compose
57+
```
58+
- Then you’ll verify that the installation was successful by checking the version:
59+
```shell
60+
docker-compose --version
61+
```
62+
63+
## Reference
64+
- [Docker](https://docs.docker.com/engine/install/ubuntu/)

0 commit comments

Comments
 (0)