Forum OpenACS Development: Docker Images available

Collapse
Posted by Malte Sussdorff on
I managed to autobuild docker images for OpenACS 5.9.1 as well as 5.10 available at https://hub.docker.com/repository/docker/sussdorff/openacs

They are auto generated from https://github.com/sussdorff/openacs and as Gustaf has already noted, still require e.g. Docker Secrets support.

Immediate next step though is to add the ]project-open[ packages and work through the tedious updates necessary to get it running based off OpenACS 5.10 & PG11. Contrary to Frank our goal is to provide ]project-open[ packages similar to .LRN as an addon to OpenACS as this will help decrease technical debt (in our eyes).

If you want to try it out on your own machine, downloading the docker-compose from https://github.com/sussdorff/openacs/blob/master/docker-compose.yml should do the trick (check the correct branch, master points to 5.9.1).

And please feel free to fork the github repository so we can merge your ideas an improvements into it.

Collapse
Posted by Gustaf Neumann on
Malte, this sound great! Many thanks!

-g

Collapse
Posted by Iuri Sampaio on
Hi Malte,
That's great news!
Last year I was working with Kenneth, trying to "dockerize" OACS in a Debian 9 container. However, we had to park the project unfortunatelly.

In my research, I found ]PO['s documentation and basics sources, based on Centos.

MALTE: "Contrary to Frank our goal is to provide ]project-open[ packages similar to .LRN as an addon to OpenACS as this will help decrease technical debt (in our eyes)."

MALTE: "work through the tedious updates necessary to get it running based off OpenACS 5.10 & PG11"

I have expertise in that "tedious" task. :)
In the past, I've created scripts to install PO from scratch (using APM package) in an OACS core installation :)

Let me know if you need help and how to jump in.

MALTE: "And please feel free to fork the github repository so we can merge your ideas an improvements into it."
Doing now! ... :)

Best wishes,
I

Collapse
Posted by Malte Sussdorff on
Hi Iuri,

can you provide me with the scripts to install ]project-open[ from scratch? That would indeed be helpful, then I don't need to run off the demo files.

Best wishes
Malte

Collapse
Posted by Iuri Sampaio on
Sure, I can share it.
However, I believe it won't be a good idea.
https://github.com/iuri/GROM

That tedious work was accomplish a while ago, back in 2013, when ]po[ was in 4.0

https://sourceforge.net/projects/project-open/files/project-open/V4.0/

Best wishes,
I

Collapse
Posted by Iuri Sampaio on
Meaning,
1. It would be great to help.
2. I had that experience in the past.
3. It will be a nice review and recycling experience about ]PO[ 5.0 data model, sources, and dependencies. I'm aware we've got substantial changes from 4 to 5.

Best wishes,
I

Collapse
Posted by Malte Sussdorff on
Ah... then indeed it most likely won't be much help at the moment. But thanks for sharing the repository nevertheless!
Collapse
Posted by Malte Sussdorff on
I updated the docker images to include rubylane json in the naviserver and use the latest checkout of oacs-5-10.

Still no secrets or docker swarm support though.

Collapse
Posted by Kenneth Wyrick on
Hi Mate,
Used your .yml to install docker.

Trying to find the path to where the postgres data is stored.

The ENV is set to
PGDATA /var/lib/postgresql/data

kmw@caltek$ sudo docker run -it postgres:10-alpine /bin/bash
bash-5.0# whoami
root
bash-5.0# su - postgres
b030bcb67163:~$ psql -c "show data_directory"
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
b030bcb67163:~$
volume name: openacs_db_data
located:
/var/lib/docker/volumes/openacs_db_data/_data
Keep in mind that this finding depends on how docker is handling the volumes on your system. You should normally not access your volume directly from the docker host.
Hi, I'm tried this,

kmw@caltek$ sudo docker run -it postgres:10-alpine /bin/bash
bash-5.0# whoami
root
bash-5.0# su - postgres
b030bcb67163:~$ psql -c "show data_directory"
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
b030bcb67163:~$

but nothing happen here

Dear Binaca,

since nobody else answered so far: i have never used the docker image, so i have to do some guessing here. To me, this looks as if in the docker image, the postgres server was not started and/or it was not initialized (via initdb) yet.

https://wiki.postgresql.org/wiki/First_steps

i would expect that the docker script would do so for you, but maybe something went wrong on this...

-gn

Collapse
Posted by Malte Sussdorff on
Quick question. If you use the docker-compose.yml then both Postgres and Docker should come up and the OpenACS Database called „openacs“ with user „openacs“ should be initialized. The Root user might not have the access for your commands.

Not sure what you want to achieve though. The PGDATA is a volume, so you can store it within the docker environment and it stays with the same data even if you upgrade the Postgres Environment. This volume is „mounted“ within the Postgres container under /var/lib/postgresql/data. So depending on your *goal* I might actually help.