Commit c94d6c3a authored by Tobias Munk's avatar Tobias Munk

added composer GITHUB_API_TOKEN support (with alias)

parent b179d7bb
......@@ -20,5 +20,6 @@ ADD src /app/src
ADD version /app/version
# Create folder writable by the application (non-persistent data)
RUN mkdir -p /app/web/assets /app/runtime && \
chmod 777 /app/web/assets /app/runtime
RUN mkdir -p /app/web/assets /app/runtime \
&& chmod 777 /app/web/assets /app/runtime \
&& echo "alias composer='sh /app/src/composer.sh'" >> /root/.bashrc
#!/usr/bin/env bash
if [ -n "${GITHUB_API_TOKEN}" ]
then
composer config -g github-oauth.github.com ${GITHUB_API_TOKEN}
fi
composer "$@"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment