Error in build using Docker on Fedora 22

dev
docker
maven
Tags: #<Tag:0x00007f01585271b8> #<Tag:0x00007f0158527078> #<Tag:0x00007f0158526f38>

#1

Hello,

I am a Prof. at Western New England University (Massachusetts, U.S.) and would like to Asqatasun with a Software Engineering class this fall. I have a blind student in the class so Asqatasun is a fitting project for us to use.

I am trying to set up the dev environment and have encountered an error. I am on Fedora 22 and I am following the instructions to build a Docker image as here:

https://doc.asqatasun.org/en/30_Contributor_doc/Build/Build_Docker_image.html

When I get to Step 4 Modify the Dockerfile for local usage, my Dockerfile does not contain the lines that the instructions indicate should be commented out. Neither does it contain the lines that should be uncommented. I have modified the Dockerfile to include what I believe is the correct set of instructions[0]. However, I am getting the following error on startup of MySQL:

Step 12 : RUN service mysql start
—> Running in 40ef39085782
mysql: unrecognized service
The command ‘/bin/sh -c service mysql start’ returned a non-zero code: 1

My best guess is that the MySQL service is not starting correctly within the Docker container, but I’m not sure why or how to fix it. A link to the full log of output is below [1]. Any help would be most appreciated. I would be happy to update the documentation to reflect any necessary changes.
Thanks!
Heidi

[0] My Dockerfile:
https://pastebin.com/yWYvFJ4w

[1] Log of running the Dockerfile:
https://pastebin.com/rm1mkRRr


#2

hi @HeidiEllis,

To set up the dev environment, you can use the following script:
docker/build_and_run-with-docker.sh.

More information about this script: https://github.com/Asqatasun/Asqatasun/tree/develop/docker#builds-asqatasun-and-runs-a-new-docker-container

I think that the instructions to build a Docker image is not up to date.


#3

now fixed :sunglasses: