Written by Jana Bernhard-Harrer and Sofia Gil-Clavel.
Install AmCAT in your own server
Step 1: Connect to your server and log in
ssh <username>@<serveraddress>
Step 2: Install Docker (we will use this to install AmCAT)
- Check which Ubuntu version you have to know which Docker you need:
cat /etc/os-release -
Go to: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository and follow the instructions.
- Set up Docker’s apt repository.
Side Note:
aptinstalls linux system packages the same wayconda installinstalls python packages. - Install the latest Docker packages.
- Check if the Docker is running with:
sudo systemctl status dockerSide Note: sudo tells the server that you have admin rights. - Verify that the installation is successful
- In case you need to delete a Docker you need to follow the steps in Extra: In case the Docker installation was not succesful.
- Set up Docker’s apt repository.
Side Note:
Step 3: Install AmCAT
- go to: https://github.com/ccs-amsterdam/amcat4docker/blob/caddy/README.md and follow the instructions:
- Clone the git repository with
git clone https://github.com/ccs-amsterdam/amcat4docker - and then move into the newly created folder:
cd amcat4docker - launch (read: start) the docker with
sudo docker compose up -dthis might take a bit, but after you can check - with
curl localhost/amcatif it worked. The output for this command should be an html code and if you go to your browser and type http://localhost it should show AmCAT - to configure AmCAT to your needs you need to modify the .env file.
- navigate to your amcat4docker folder and
cp .env.example .envto copy the example environment they provided - run
nano .envto be able to write into the file. - look at the example environment here: https://github.com/ccs-amsterdam/amcat4docker/blob/caddy/.env.example and change all the things that need changing.
- this means: look at all the commands that are un-commented. They need input from you!
- then go though all the commented settings and check whether the default settings are ok.
- if the default settings are ok, leave them commented-out
- if you change them, you need to un-comment them.
- navigate to your amcat4docker folder and
-
check in your browser if anything works!
- you are done :)
Extra: In case the Docker installation was not succesful
- first get the names / ids of all the dockers with
sudo docker ps - then stop the dockers:
sudo docker stop -nameofdocker- - then remove the containers:
sudo docker rm -nameofdocker- - then prune everything:
sudo docker system prune --volumes - then get the ids for the images:
sudo docker image ls - then delete the images:
sudo docker rmi -idofimage-Side Note: This is important: You need to do this for all Dockers & Images because otherwise they will just take up space on your server.