OpenTOSCA / opentosca-docker

Docker Compose for running OpenTOSCA
MIT License
26 stars 18 forks source link

Multiple errors in Docker files #4

Closed jachinte closed 7 years ago

jachinte commented 7 years ago

Hi,

I'm interested in trying OpenTOSCA but it seems there are several issues with the docker files and some projects. Fortunately, I manually edited them and the projects are running now. Here is a list of the modifications I did, let me know if you're interested in merging them to create a pull request:

It seems that some of the projects are using JDK 1.8, so I updated the Java installation:

RUN apt-get update && \
    apt-get install -y software-properties-common && \
    add-apt-repository ppa:openjdk-r/ppa
RUN apt-get update -y && \
    apt-get install -y ... openjdk-8-jdk && \
    apt-get clean -y
RUN /var/lib/dpkg/info/ca-certificates-java.postinst configure
...
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/

In engine/Dockerfile, the engine branch does not exist. I updated it to master, but I'm not actually sure that's the one:

ENV ENGINE_BRANCH master

Same happens in bps/Dockerfile, the branch doesn't exist so the file isn't found:

ENV BPS_RESTEXT_URL https://github.com/OpenTOSCA/install.opentosca.org/raw/master/third-party/bpel4restlight1.1.jar

In admin-ui/Dockerfile the project packaging wasn't working because maven couldn't find the maven-jar-plugin, so I added the plugin version to the POM file before executing the command:

RUN sed -i '108i\<version>3.0.2</version>' /opt/admin-ui/pom.xml

The compilation of vinothek in vinothek/Dockerfile fails because the repository no longer exists (2471.de). I added some extra lines to clone and compile the required dependencies from Eclipse Winery:

RUN  git clone https://github.com/OpenTOSCA/winery.git /opt/winery
WORKDIR /opt/winery
RUN mvn install -pl org.eclipse.winery.highlevelrestapi,org.eclipse.winery.model.selfservice -am

And then, I added some lines to manually update the dependencies in vinothek's POM. This should be updated directly in the project's files:

RUN sed -i '23s/0.1.5/2.0.0-SNAPSHOT/' pom.xml
RUN sed -i '29s/0.1.19/2.0.0-SNAPSHOT/' pom.xml

I have a question though, where can I find the TestCSAR file for importing into Winery? (step N.3 from the getting started guide). It seams that the website doesn't exist anymore. Thanks!


I'm using Ubuntu 16.04 LTS, docker 17.06.0-ce, and docker-compose 1.15.0.

miwurster commented 7 years ago

Hey, it seems you are working on a pretty old state of the repository. For example, the engine/Dockerfile and vinothek/Dockerfile are no longer maintained and present in the current master.

To get started with the dockerized OpenTOSCA environment you just have to execute the following:

git clone https://github.com/OpenTOSCA/opentosca-dockerfiles.git && cd opentosca-dockerfiles
docker-compose build
docker-compose up

This will build and start the latest Docker images.

Note, we currently do not stage any pre-built images into the Docker Hub. We are working on that...

jachinte commented 7 years ago

It seems I used jojow/opentosca-dockerfiles instead of OpenTOSCA/opentosca-dockerfiles :sweat:.

There is a problem with one of the files though: bps/Dockerfile. It tries to download the file wso2bps-2.1.2-java8.zip, and keeps waiting for a response. This is the same server from which I tried to download TestCSAR.

koppor commented 7 years ago

files.opentosca.org currently has issues. I'm on it.

miwurster commented 7 years ago

Hey @jachinte the issues with files.opentosca.org are fixed and the Docker builds should work again with the latest master. Please follow the steps in the README.

jachinte commented 7 years ago

Thanks @miwurster, it's working now. I have some issues with Winery but I guess I should comment there.