Skip to content

Commit

Permalink
Updated bay-cli install to use new archive format
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantamaria committed Feb 8, 2024
1 parent d9276b5 commit e1ac644
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion images/php/Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ RUN wget -O /usr/local/bin/dockerize https://github.com/dpc-sdp/dockerize/releas
RUN apk add redis --no-cache

# Install bay-cli.
RUN wget "https://github.com/dpc-sdp/bay-cli/releases/download/v0.1.0/bay_$(echo ${TARGETPLATFORM:-linux/amd64} | tr '/' '_')" -O /bin/bay && \
RUN wget "https://github.com/dpc-sdp/bay-cli/releases/download/v0.1.1/bay_$(echo ${TARGETPLATFORM:-linux/amd64} | tr '/' '_').tar.gz" -O /tmp/bay.tgz && \
cd /tmp && \
tar -vxxzf bay.tgz && \
mv bay /bin/bay && \
chmod +x /bin/bay

RUN mkdir /bay
Expand Down
5 changes: 4 additions & 1 deletion images/php/Dockerfile.fpm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ RUN apk add --no-cache tzdata \
&& echo $TZ > /etc/timezone

# Install bay-cli.
RUN wget "https://github.com/dpc-sdp/bay-cli/releases/download/v0.0.1/bay_$(echo ${TARGETPLATFORM:-linux/amd64} | tr '/' '_')" -O /bin/bay && \
RUN wget "https://github.com/dpc-sdp/bay-cli/releases/download/v0.1.1/bay_$(echo ${TARGETPLATFORM:-linux/amd64} | tr '/' '_').tar.gz" -O /tmp/bay.tgz && \
cd /tmp && \
tar -vxxzf bay.tgz && \
mv bay /bin/bay && \
chmod +x /bin/bay

ONBUILD ARG BAY_DISABLE_FUNCTIONS=phpinfo,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,system,exec,shell_exec,passthru,phpinfo,show_source,highlight_file,popen,fopen_with_path,dbmopen,dbase_open,filepro,filepro_rowcount,filepro_retrieve,posix_mkfifo
Expand Down

0 comments on commit e1ac644

Please sign in to comment.