-
Notifications
You must be signed in to change notification settings - Fork 14
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 / Vagrant VM #123
Comments
@carba I have updated two things today:
|
Hi Idoia, don't worry I am creating the environment locally, I haven't yet installed the part that you have changed. |
OK Corrado De: carba [mailto:[email protected]] Hi Idoia, don't worry I am creating the environment locally, I haven't yet installed the part that you have changed. — |
Hi Idoia into the istallation guide..... Step 4: Create database tables /usr/local/virtuoso-opensource/bin/isql: *** The statement has grown too long on lines 4 - 3412. Can you help me? |
Hi Corrado, You are trying to create the MySQL tables inside Virtuoso ¿? Then it will ask you for the admin user password. |
With the correct mysql-syntax I receive the follow error: |
I wonder if the https://github.com/ALIADA/aliada-tool/blob/master/aliada/src/site/database/00-aliada-admin.sql Do they have the same content? |
When I download the files sql, the browser download them in html format (I don't know why). |
To download code from https://github.com/ALIADA/aliada-tool, git tool must be installed in your PC and download using it. It cannot be downloaded directly from the Web page, because they are simple HTML pages. Another option is to download 2.1 release at https://github.com/ALIADA/aliada-tool/releases/tag/2.1 , which contains all the code of aliada-tool in compressed format, including the DB script files. You are right, the link for the WAR file is not correct. There is no generated WAR file in Github, it must be generated instead from the source code which is at the following two places:
Choose the option more convenient to you from the above two mentioned options. |
Hi @carba , Have you finished the VM? |
Hi @xmolero yes, I finished the vm |
Could you please add in the section of the Installation Guide of the wiki of Github (https://github.com/ALIADA/aliada-tool/wiki/Installation_Guide) the new option of installing aliada-tool and a link where the VM can be dowloaded from? This new option of installation should be informed somewhere in Github. Shouldn´t it? or Am I wrong? |
Hi @idoiamurua, I created a docker-vm (docker-container) and not a docker-file. I need to create a docker-vm with docker-files to be shared on Git-Hub. Now I'm putting Aliada-docker-conteiner in a ftp space (about 2 Gb), and then I have to recreate the vm docker as required, including the install manual step by step.just the vm Aliada ftp is available share the resource on this bug |
@carba I believe this option should be documented somewhere in the Wiki Andrea [1] https://github.com/ALIADA/aliada-tool/wiki/Installation_Guide 2015-11-10 16:20 GMT+01:00 carba [email protected]:
|
Hi @agazzarini and @idoiamurua waiting for the install docker-files, I put the docker vm with aliada in a space accessible through the following link ftp: |
@carba please update the wiki. As a side note, the link should be public |
Hi @idoiamurua, below the dockerfile for Aliada. Whereas I haven't experience with the use of Aliada, can you test aliada dockerized like a normal user and tell me if it works properly? |
I put the dockerfile in this path: aliada-tool/aliada/src/site/DockerFile |
Hi @carba |
I'm also very interested in trying this out and can help test it. I heard about the Docker image last week at the SWIB15 conference, where Cristina Gareta presented ALIADA. But I'm also new to Docker (though I've used other virtualization environments - VirtualBox, KVM, Xen, QEMU...) and I can't figure out what to do with the DockerFile. I also downloaded the 2GB file from the FTP server mentioned above, but I don't know what to do with it. Some documentation would be nice! |
Hi @osma and @idoiamurua, our objective is to test Aliada dockerized. The docker-file I posted, allows after you download and install docker server, to download and use/play Aliada dockerized for use/test it. If you are not skilled for docker, I write a mini tutorial step by step, to install docker server and download Aliada-dockerized. So you can test as any user, aliada tell me if Aliada has been installed correctly. |
Yes. It would be nice to have a mini-tutorial. |
A step-by-step mini-tutorial sounds excellent! |
+1 for the tutorial. @osma many thanks for your help |
Hi, I decided not to wait for the tutorial and tried running this myself, while trying to learn Docker at the same time, mainly from the Docker tutorial for Linux systems. I started with my Ubuntu 12.04 LTS system and first installed the latest version of Docker using the official Ubuntu install docs. Then (after succesfully running the Docker hello-world image) I tried the command
That downloaded the corrado/aliada image from Docker Hub which took a while, but actually running it didn't produce any output, it just exited immediately. I decided that I needed to use the DockerFile as well to actually start Aliada, from the aliada github repository, so I downloaded that as well. The filename didn't match what Docker expects (it has to be "Dockerfile"), so I renamed it. Finally I was able to build and run the image, but it failed with an error message. Apparently the
Am I doing something wrong @carba? |
Hi @osma probably the system doesn't see the path corretly. Can you try to replace the step 3: remove the line "RUN cd /script && ./start_aliada.sh" and insert in the step3 the follw line Let me know, please |
Thanks for the tip @carba. However, it didn't work:
I will try other things like running a shell inside the container, I just need to learn a bit more Docker... |
Ah, the name of the script is |
Okay, now I almost have it working. But there appears to be a problem with Tomcat. Here's what I did. I disregarded the Dockerfile, because it appears to be broken from the start (the filename is wrong, and the start command is wrong) and the same things can be done on the docker command line. First, start up the Docker image in interactive mode (also exposing port 8080 to the host):
Then I get a root shell in the container. From there, I start Aliada using the provided script:
Okay, so Virtuoso, MySQL and Tomcat have started and the Docker container is still running. Now I fire up a browser at http://localhost:8080/ to access Tomcat inside the container. I get this error:
I searched around and it seems that the problem is caused by incompatibility between this version of Tomcat and Java 8 (which is the only version of Java installed in the Docker image). So you'd have to either upgrade Tomcat (for example 7.0.50 is said to work with Java 8) or use Java 7. @carba Did you ever get the ALIADA user interface actually working with this Docker image? There seems to be a fundamental mismatch between versions. I'll have to give up on this for now and look for other ways of trying out ALIADA. It's just that the installation guide is way too long (17 pages if I printed it). Just trying out ALIADA is very difficult at the moment. |
I made one more desperate attempt to get it working. First, I installed Java 7 in the container from the CentOS repositories: Then I configured Tomcat to use Java 7 by editing /home/apache-tomcat-7.0.22/bin/start.sh like this:
Now I can start Tomcat and the front page http://localhost:8080/ shows the Tomcat default page. But http://localhost:8080/aliada-user-interface-2.0/ gives a 404 error. |
The ALIADA installation guide says "Apache Tomcat 7.0.50 or above". The version in the container is too old. I will stop spamming this issue with further comments, I promise... |
Yes. That is. It is required:
|
I made yet another desperate attempt getting @carba's Docker image to work, since I figured it would still be easier than starting from scratch. I installed Tomcat 7.0.65 within the container in parallel to the old version (7.0.22), moved over the WARs, fixed the startup scripts, and copied the database configuration from the old Now I can access the ALIADA user interface but when I log in with "admin/admin", I get the error
|
Hi @osma, sorry for delay, I'm changing the container docker to solve the problem of startup services, and I am updating the tomcat. Within tuesday I share the new container Aliada for new tests. |
Thanks @carba. I'll wait for your new image then. |
Hi @osma I released the new Aliada docker with the changes. |
Thanks @carba. That didn't quite work (you don't have a
However, this worked:
I ran it using
Then in the shell I executed
The script refers to a tomcat directory that doesn't exist. I could fix this myself (the directory is really @carba Can you please test that your image works so that one can log into ALIADA and start using it? I don't mind if there are some problems along the way, but please at least try to make sure it works for you. Just installing the software is not enough, it must also work together. |
I tried once more. I used this command to start the container:
To fix Tomcat startup problems first I had to change the path in
Then I had to change the paths in
After these changes I was able to run Now I fired up my browser at http://localhost:8080/aliada-user-interface-2.0/ and got the login form. I tried to log in with aliada/aliada and got the error message "The database configuration is invalid", just as before. I checked the logs in /home/apache-tomcat-7.0.67/logs/ and found this exception traceback that might be relevant:
So there are still at least three problems with the Docker image:
I can fix 1 and 2 myself (see above how I fixed them) but 3 requires detailed knowledge of ALIADA database setup. |
Hi @osma, I have been fixed the points 1 and 2 a few weeks ago (I need to refresh the repository of aliada). For the jdbc error I need @idoiamurua |
@carba OK thanks for the update. I'll wait for a solution to the database issue then. |
Hi, As mentioned in the wiki page at https://github.com/ALIADA/aliada-tool/wiki/Installation_Guide#step-5-modules-installation , ALIADA requires a datasource with a JNDI name "jdbc/aliada" defined in the Servlet Engine / Application Server. This is done in Tomcat by placing the following lines in
|
@idoiamurua Thanks for the clarification. The instructions in the wiki are a bit unclear:
I've edited my context.xml file according to the instructions you gave in the previous comment: <Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<!-- ALIADA JNDI -->
<Resource
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
name="jdbc/aliada"
auth="Container"
type="javax.sql.DataSource"
username="aliada" password="aliada"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/aliada"
maxActive="2"
maxIdle="2"/>
<!-- ALIADA: Params to create the sub_jobs properties files of
aliada-links-discovery app: BEGIN -->
<Parameter name="ddbb.username" value="aliada"
override="false"/>
<Parameter name="ddbb.password" value="aliada"
override="false"/>
<Parameter name="ddbb.driverClassName" value="com.mysql.jdbc.Driver"
override="false"/>
<Parameter name="ddbb.url" value="jdbc:mysql://localhost:3306/aliada"
override="false"/>
<!-- ALIADA: Params to create the sub_jobs properties files: END -->
</Context> However, after restarting Tomcat, the ALIADA login form still says "The database configuration is invalid" and I get a Java traceback in Possibly another problem is that MySQL hasn't been set up to accept the
Is there any chance of getting a working Docker image of ALIADA soon? I've tried to make this work several times but I feel that I'm not making much progress... |
Hi @idoiamurua and @osma I will be busy until tomorrow to other projects. Monday I will be available to check Aliada into docker until aliada works properly into docker |
Hi @osma, this piece of code was implemented in the server.xml file rather than in the file context.xml. Another thing, I can't connect with "aliada" user on the db. on this issue I'll know tomorrow |
Thanks for the update @carba! I look forward to trying a new version of the image. |
as soon as I finish these changes and the I test them, I put a new version of Aliada and I warn you ;) |
@carba Any news about this? |
Hi @osma as soon as possible I put the new docker image in the repository. Sorry for delay |
@carba The new URL has been updated in the |
As outcome of the last meeting we decided to produce such artifact (a VM) for allowing users to have a quick and rapid taste of ALIADA.
@carba: please follow the instructions that you can find in the Wiki and, in case of troubles, first, you should report that here. If we agree that the trouble is an error in the documentation, we will open a separate issue for fixing that.
AG
The text was updated successfully, but these errors were encountered: