-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplified Docker dev setup #167
base: dev
Are you sure you want to change the base?
Conversation
Contains an "ansible" container that bootstrapps a "vm" container with the entire Islandora stack
Trying this out as the normal method is failing and I have a problem with the ansible box.
|
Ok I forgot to run
|
@@ -0,0 +1,3 @@ | |||
#!/bin/sh | |||
|
|||
echo "Current mode: permissive" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this actually disable SELinux or just the reporting functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since SELinux isn't really running in Docker containers, this just tricks Ansible into passing its "is selinux set up correctly?" test.
@birkland So I have been able to get this to work, but even though the tomcat8 role shows no errors it seems to fail starting up.
I see the files now, and I can restart the service. It seems like at the time the files are not there and the service never restarts. Ideas how to debug this? |
Draft PR to demonstrate Islandora 8 in Docker, using a simplified setup containing an external Ansible variables file, and no special Docker inventory, in contrast to #124
Creates and runs two Docker containers:
ansible
container that, upon startup, runs ansible to install Islandora 8 to thevm
containervm
container that plays the role of an empty Centos 7 box upon which Islandora 8 is installed via theansible
container.Motivation
To Test
docker-compose
(usually comes with the Docker distribution, e.g on Mac and Windows)claw-playbook/
) dodocker-compose build
docker-compose up -d
ansible
container viadocker logs -f ansible
. That's the ansible output!localhost:8000
, and poke around!Tips and tricks
docker exec -it vm /bin/bash
docker-compose stop
will stop all containers, but keep state. You can later on do adocker-compose up vm
just to start the Islandora "vm" container.docker-compose down
.docker-compose stop
preserves state.