Skip to content
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

Feature/ubuntu 20.04 excluding composer and chash from git #6

Open
wants to merge 12 commits into
base: 1.11.x
Choose a base branch
from

Conversation

dbendlin
Copy link

@dbendlin dbendlin commented Sep 9, 2020

When excluding

# Get Composer and update Chamilo
WORKDIR /tmp
RUN curl -sS https://getcomposer.org/installer | php
RUN chmod +x composer.phar
RUN mv composer.phar /usr/local/bin/composer

# Get Chash
RUN git clone https://github.com/chamilo/chash.git chash
WORKDIR /tmp/chash
RUN rm -rf vendor
RUN git clone https://github.com/ywarnier/chash-vendors.git vendors
RUN mv vendors/vendor vendor
RUN rm -rf vendors
RUN php -d phar.readonly=0 createPhar.php
RUN chmod +x chash.phar && mv chash.phar /usr/local/bin/chash

Im getting an almost 2GB docker image that works

…nd chamilo-lms -1.11.x, this file is only processed at docker build, still need to find out how to everride its content when using dockr run =/
…p instructions to get some errors, I've also changed the host and domain used by the current example.
…es, file include ARG instructions to override some values that were before hardcoded, still need to find out how to make the env variables override values when issuing docker run. This file downloads chamilo, composer and chash from github and then performs composer update producing a 3.5GB size docker image. I'm going to summit another pull request that avoids this steps. Finally openssh its removed , docker exec -it ${container_name} /bin/bash could be used in the docker host to get into the running container. Entrypoint inmplemented so container can run in detached mode
…ust use one downloaded pron githubs repo =)
…te from ubuntu repos (downt know whant i've leave behind). Git clone for both previous packages excluded from Dockerfile.. composer update -n on chamilo root also excluded. Got a docker image of only 1GB size.
…be run. This step take a while to execute. But in the end got a 1.97GB docker image.
…still hope to allow container customization throght ENV variables
@ywarnier
Copy link
Member

ywarnier commented Sep 9, 2020

The git clone https://github.com/ywarnier/chash-vendors.git vendors is outdated now, it shouldn't be used anymore, anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants