Hi Ashish,

That worked, thank you!! 

Just for reference, below are the steps I took for getting a custom Project 
set up on Arches v5 when using Docker. The instructions at 
https://github.com/archesproject/arches/tree/master/docker#setting-up-your-own-arches-project
 
were helpful but did not work for me.

   - 1. Clone Arches v5 files from https://github.com/archesproject/arches 
   to your computer using Git
   - 2. Modify the Docker Compose file:
      - Under service 'arches', set the image name to something like 
      yourlastname/arches:5.0. This will be built in a moment.
      - Under service 'arches', set ARCHES_PROJECT environment variable: 
      environment:
             - ARCHES_PROJECT=my_project
   - Under service 'arches', set DJANGO_MODE=DEV
   - 3. Make two modifications to docker/entrypoint.sh:
      - Comment out line 221: #[[ -d ${APP_FOLDER} ]] || mkdir 
      ${APP_FOLDER} 
      - Comment out a part of line 223: arches-project create 
      ${ARCHES_PROJECT} #--directory ${ARCHES_PROJECT}
   - 4. Build the Arches image using 'docker-compose build'. You can verify 
   this after with 'docker image ls'.
   - 5. Start Arches with a custom Project with 'docker-compose up'. If 
   this step fails, then try 'docker-compose down -v' (warning: erases volumes 
   and containers), then 'docker-compose up'. Sometimes I had to run 'docker 
   system prune' first.
   - 6. Open web browser at http://localhost (served by NGINX) or 
   http://localhost:8000 (served by Django)

At step 6, you may note that media files are missing from Arches. Those 
will need to be added to the my_project (in the container) possibly by 
copying from arches/app/media.
Then it needs to be communicated to Django or NGINX where they are so that 
they can be served. This is still on my to-do list.

OPTIONAL step: Under service arches, set bind-mount 
./docker/entrypoint.sh:/web_root/entrypoint.sh. For this you may also need 
to open up permissions to the entrypoint.sh file with command chmod (on 
Linux machines).

Issues:

If I add this line under volumes in the Docker Compose file's 'arches' 
service ...

    volumes:
    - ./my_project:/web_root/my_project

... running 'docker-compose up' will result into a Django server error. I 
still need to figure out how to bind-mount the Project files to my dev 
environment.

Markus


On Wednesday, June 3, 2020 at 11:55:07 PM UTC-7, Ashish Gautam wrote:
>
> Hi Markus,
>
> I had a similar issue earlier while running Archesv5 in Docker. I did the 
> following changes to create and run custom-project smoothly:
>
> 1: entrypoint.sh file inside arches/docker/ 
>
>   Entrypoint breaks while creating the custom-arches-project in the line:
>
> [image: image.png]
> remove line 221 and  --directory ${ARCHES_PROJECT}  from line 223. In 
> order to reflect these changes, you can bind mount this file inside the 
> container or build a new one. Note that this should run the 
> container without any issue only in DEV mode. If you want to run in PROD 
> mode then more steps are required which also depends on whether you want to 
> run Celery or not.
>  
> Best Regards,
> Ashish
>
>
>
>
>
>
> On Thu, Jun 4, 2020 at 4:41 AM Markus S. <[email protected] 
> <javascript:>> wrote:
>
>> I got further by changing DJANGO_MODE=PROD to DJANGO_MODE=DEV. Now system 
>> starts up at least. It looks broken, though. The web server returns a 400 
>> error on a lot of the media files.
>>
>> Nevertheless, I am trying to do this with *v5*. The instructions at 
>> https://github.com/archesproject/arches/tree/master/docker#setting-up-your-own-arches-project
>>  
>> are utilizing a *v4* Docker image. Swapping that to a v5 image did no 
>> work.
>>
>> I will continue exploring this.
>>
>> -- 
>> -- To post, send email to [email protected] <javascript:>. To 
>> unsubscribe, send email to [email protected] <javascript:>. For 
>> more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/41ac5f46-8e0c-45e6-aad8-bff1808c72e3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/archesproject/41ac5f46-8e0c-45e6-aad8-bff1808c72e3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/a86d4ac7-7b52-41d6-b4aa-75dc3044b1a5o%40googlegroups.com.

Reply via email to