Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Get Started with Satis Using Docker

In an effort to make my previous tutorial on how to set up a Satis server easier, I have created this tutorial aimed at docker users whereby you will only need to edit two small config files.

This tutorial may be out of date and needs reviewing. I just moved it from my old hosting platform to here. I know for sure that I need to add updates for git.

Steps

  • Log into your server.
  • Install docker if you haven't already.
  • Download the tar.gz file I created.
wget http://files.programster.org/tutorials/php/satis/docker-satis/satis-server.tar.gz

Extract the file

tar --extract --gzip --file satis-server.tar.gz

Edit the config file and put in your SVN details.

editor satis-server/config-volume/svn-details.sh

Update the satis.json file with details of your packages.

editor satis-server/config-volume/satis.json

Build the container and run it

cd satis-server/docker-satis/docker-satis
bash build.sh
bash start-container.sh

Optional - Firewall

Satis should just be acting as a directory/pointer service and not actually hosting code of its own, so there should be no need to lock it off. (I need to double check this). However, if you wish to lock it off, I would suggest using an IP based firewall using iptables or UFW.

iptables -A INPUT -s xxx.xxx.xxx.xxx/32 -p tcp -j ACCEPT

Thats it! You now have a docker container running your Satis server.