mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
feat: Add GCM
This commit is contained in:
parent
245cc42321
commit
3af70b6282
1 changed files with 9 additions and 6 deletions
|
|
@ -122,12 +122,11 @@ RUN git clone ${GIT_REPO} --depth 1 -b ${GIT_BRANCH} .bench \
|
|||
&& echo "export PATH=/home/frappe/.local/bin:\$PATH" >>/home/frappe/.bashrc \
|
||||
&& echo "export BENCH_DEVELOPER=1" >>/home/frappe/.bashrc
|
||||
|
||||
# Install homebrew and wget
|
||||
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
|
||||
&& (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/frappe/.profile \
|
||||
&& eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
|
||||
&& brew install gcc \
|
||||
&& brew install wget
|
||||
# Setup GitHub Credential Manager
|
||||
RUN wget "https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.5.0/gcm-linux_amd64.2.5.0.deb" -O /tmp/gcmcore.deb \
|
||||
&& sudo dpkg -i /tmp/gcmcore.deb \
|
||||
&& git-credential-manager configure
|
||||
|
||||
|
||||
# Add aliases
|
||||
RUN touch ~/.bash_aliases \
|
||||
|
|
@ -155,8 +154,12 @@ RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh |
|
|||
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
|
||||
&& echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> ~/.bashrc
|
||||
|
||||
|
||||
EXPOSE 8000-8005 9000-9005 6787
|
||||
|
||||
RUN (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/frappe/.profile \
|
||||
&& eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
|
||||
FROM bench as bench-test
|
||||
|
||||
# Print version and verify bashrc is properly sourced so that everything works
|
||||
|
|
|
|||
Loading…
Reference in a new issue