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

Installing on Ubuntu 19 #727

Open
holisticnetworking opened this issue May 1, 2019 · 4 comments
Open

Installing on Ubuntu 19 #727

holisticnetworking opened this issue May 1, 2019 · 4 comments

Comments

@holisticnetworking
Copy link
Contributor

Is your feature request related to a problem?

Installation will fail without a specific set of requirements.

Feature story

Feature: Minimum Requirements
  As a developer
  I want minimum requirements in the README doc
  So that I can prepare my system for installation

Describe the solution you'd like

The following seem to be the minimum PHP requirements for the system:

  • Must have Composer installed
  • Must have PHP7.3.x installed
  • PHP must be compiled with Zip, Curl and SimpleXML support

Describe alternatives you've considered

None

Acceptance criteria

Scenario:  
Given 
When 
Then 

Additional context

Add any other context or screenshots about the feature request here.

@brandonopened
Copy link
Member

With docker images why did you need to compile PHP on your own?

@holisticnetworking
Copy link
Contributor Author

I'm going to assume the installation didn't go as cleanly as I hoped. You're right, of course: we shouldn't need to change libraries on the parent OS. @roverwolf noted in Slack that Composer is also packaged with OpenSALT, so I'm trying to dig into the log files to find out what was missing at the start that caused this cascade of fails.

@holisticnetworking holisticnetworking changed the title Minimum Requirements Installing on Ubuntu 19 May 1, 2019
@holisticnetworking
Copy link
Contributor Author

Ok, here is the current output when running the installation scripts:

tomb@localhost:/var/containers/opensalt$ ./local-dev/initial_dev_install.sh
sed: can't read s#ThisTokenIsNotSoSecretSoChangeIt#EkANjvGTYsGENOSuVL/dpjMrqxXwrACwGX2S2TGfdceQ#: No such file or directory
sed: can't read s#ThisTokenIsNotSoSecretChangeIt#jBaz4N3DeTWawqNYhE0blLrXr8P4QNIDO9FYrNXgHbFz#: No such file or directory
cd docker && \
	docker-compose pull && \
	docker-compose up -d
/bin/sh: 2: docker-compose: not found
make: *** [Makefile:12: docker-start] Error 127
touch -c composer.lock
touch -c yarn.lock
bin/composer install --no-interaction
bin/composer: line 10: docker-compose: command not found
make: *** [Makefile:52: vendor] Error 127
/var/containers/opensalt/bin/phpcli: line 5: docker-compose: command not found
You should now be able to connect to http://127.0.0.1:3000
Log in with initial user "admin" with password "secret"
tomb@localhost:/var/containers/opensalt$ 

@holisticnetworking
Copy link
Contributor Author

Ok. After working through issues with @roverwolf, we've discovered the following issues that may also cause another developer troubles. Might want to note these in the documentation:

  1. User Groups: Docker creates its own user group on the host system. Be sure that the user installing the software is also part of that group.
    @see: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user
  2. Directory Permissions:
    1. docker/var/cache directory should be writable by the server
    2. docker/data/mysql should be writable by the MySQL daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants