Skip to content

Commit

Permalink
update release scripts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 488513372
  • Loading branch information
pax authors authored and aireenmei committed Nov 15, 2022
1 parent 7527413 commit 40dd8d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
6 changes: 3 additions & 3 deletions praxis/pip_package/cloudbuild-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
'-f', 'praxis/pip_package/release.Dockerfile', '.',
'--build-arg', 'wheel_folder=${_WHEEL_FOLDER}',
]
timeout: 14400s
timeout: 3600s
- name: 'gcr.io/cloud-builders/docker'
args: ['push', '--all-tags', 'gcr.io/${PROJECT_ID}/${_IMAGE_NAME}']
timeout: 1800s
Expand All @@ -22,8 +22,8 @@ substitutions:
options:
dynamic_substitutions: true
substitution_option: 'ALLOW_LOOSE'
timeout: 24000s
timeout: 5400s
artifacts:
objects:
location: 'gs://pax-on-cloud-tpu-project/wheels/$(date -u +%Y%m%d)-praxis-${_RELEASE_VERSION}'
paths: ['/**/*.whl']
paths: ['/**/*.whl']
15 changes: 1 addition & 14 deletions praxis/pip_package/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,12 @@ ENV PYTHON_MINOR_VERSION="8"
# Pick up some TF dependencies
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends software-properties-common
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
aria2 \
build-essential \
curl \
dirmngr \
emacs \
git \
gpg-agent \
less \
libfreetype6-dev \
libhdf5-serial-dev \
libpng-dev \
libzmq3-dev \
lsof \
pkg-config \
rename \
rsync \
python-dev \
python3-distutils \
sox \
unzip \
vim \
&& \
Expand Down Expand Up @@ -66,7 +53,7 @@ RUN mkdir /bazel && \

COPY . /praxis
RUN mkdir $WHEEL_FOLDER
RUN pip3 install /praxis/praxis/pip_package
RUN pip3 install -r /praxis/praxis/pip_package/requirements.txt

RUN git clone https://github.com/google/flaxformer.git
RUN cd flaxformer && pip3 install .
Expand Down

0 comments on commit 40dd8d7

Please sign in to comment.