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

Docker for local development #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

lostfocus
Copy link

I've thrown some docker config files and a few lines of readme together for local development after reading #30

I really hope nobody thinks this would be ready for public deployment but it works fine as a development setup.

@pirate
Copy link

pirate commented Nov 10, 2018

This looks basically perfect, thanks so much @lostfocus!

`./docker/build.sh` builds the containers without starting them
`./docker/down.sh` shuts down the containers

You will still have to manually install Compass within these containers. When creating the `.env` file, the values are as follows:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this file need to be created? And how?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scroll up a bit. ;) First paragraph under "Setup"

In the compass directory, copy .env.example to .env and fill in the details.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ReDetection
Copy link

Unfortunately, this does no longer work – Dockerfile buildscript can't install debian software anymore

@lostfocus
Copy link
Author

I haven't tried the setup for this project in quite some time, but I use a similar one with a more modern PHP version in other projects without any problem.

At which point does it stop and what is the error message?

@ReDetection
Copy link

There were some warnings along the way so together with the final error it is:

W: GPG error: http://deb.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1668891673
WARNING: The following packages cannot be authenticated!
  libpopt0 libxau6 libxcb1 libxext6 libxmuu1 less liberror-perl xauth
E: There are problems and -y was used without --force-yes
1 error occurred:
	* Status: The command '/bin/sh -c apt-get -y install sudo &&    apt-get -y install curl &&    apt-get -y install git &&    apt-get -y install zip unzip &&    apt-get -y install vim &&     apt-get -y install libicu-dev' returned a non-zero code: 100, Code: 100

So it does not even get to the phase where it builds the extensions.

However if I change php image to php:7.4-apache-bullseye, it works all the way up. I am just having some issues doing artisan migrate, but this I am going to dig in later.

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.

3 participants