In this topic, we are going to write our module that will install Atlassian's Bitbucket. The application will be comprised of two containers, among which one will be Postgres as we mentioned earlier. We are actually going to tweak the container to secure the backend and make it only accessible to Bitbucket. Then, we will run the Bitbucket container, configure the user it will run as, and then map the filesystem from the host machine to the container.
This is just going to be a quick refresher, as we covered this in the last chapter. If you are still not feeling comfortable with this step, I would recommend you to go over the last chapter again until you have a good grasp of the process.
So, we are going to open up our terminal and change directory or cd into the root of our Vagrant repo. Then, we will type vagrant up
, and once the box is up, we will use SSH into it with vagrant ssh
. The next step is to change to root (sudo ...