Skip to content
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

Issue/remove setup.sh #103

Closed

Conversation

darrylAlexander
Copy link

This branch is intended to close #102 but I haven't actually removed the setup.sh script yet or updated the README.md. The reason I left it there is because I wanted to maybe get @nzchicken or someone to review it by pulling down the branch and run it to make sure its all good.

To get this version of the project up and running, run the following commands after navigating to the project root.

docker build -t davehakkens_wordpress .
docker swarm init
docker stack deploy -c docker-compose.yml davehakkens

To stop the application

docker stack rm davehakkens
docker swarm leave --force

All the other instructions in the README.md at the moment can be done but to access the bash, the name of the node will need to be used so
docker exec -it "davehakkens_db.1.hkv2w87t17w1mbp7hyo6p77yx" bash
as an example.

If you like what I've done, I'll update the README.md then it could be merged in. If not, let me know what's happening and I'll try and sort it.

Changed the Dockerfile to use the official WordPress image and run
commands that install the theme and plugins it is dependent on.

It does not activate anything and does not configure plugins.

	modified:   Dockerfile
Removed all theme installing into wordpress because this is done in the
docker-compose file.

Added image command to docker-compose otherwise you cannot deploy as a
stack. The image is local only so needs to be built with the docker file
first.

	modified:   Dockerfile
	modified:   docker-compose.yml
@b-n b-n closed this Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove setup.sh as a dependency
2 participants