Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
abdulhuq811 committed Aug 29, 2024
1 parent 4ded177 commit bfb8e6a
Show file tree
Hide file tree
Showing 4 changed files with 731 additions and 632 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ USER root

ENV POETRY_VERSION=1.4.1
# Clean up APT when done.
RUN apt-get update && \
apt-get -y install \
RUN apt update && \
apt -y install \
build-essential \
zlib1g-dev \
libssl-dev \
Expand All @@ -18,11 +18,11 @@ RUN apt-get update && \
libbz2-dev \
liblzma-dev \
postgresql-client --no-install-recommends && \
apt-get clean && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir poetry==$POETRY_VERSION \
RUN pip3 install poetry==$POETRY_VERSION \
&& poetry config virtualenvs.create false

ARG NB_UID="1000"
Expand All @@ -33,12 +33,12 @@ ENV SAGERENDER_USER=sagerender
USER root
# Setup the "sagemaker" user with root privileges.
RUN \
apt-get update && \
apt-get install -y sudo && \
apt update && \
apt install -y sudo && \
useradd -m -s /bin/bash -N -u $NB_UID $SAGERENDER_USER && \
chmod g+w /etc/passwd && \
echo "${SAGERENDER_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
# Prevent apt-get cache from being persisted to this layer.
# Prevent apt cache from being persisted to this layer.
rm -rf /var/lib/apt/lists/*


Expand All @@ -56,3 +56,5 @@ WORKDIR $SAGERENDER_PROJECT_DIR/$SAGERENDER_PROJECT/
RUN poetry install && poetry cache clear --all .

USER $SAGERENDER_USER

CMD ["sagerender"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SageRender
---
[![codecov](https://codecov.io/gh/Nike-Inc/sagerender/branch/main/graph/badge.svg?token=0TvSUJHvH2)](https://codecov.io/gh/Nike-Inc/sagerender)
[![Test](https://github.com/Nike-Inc/sagerender/actions/workflows/python-test.yaml/badge.svg)](https://github.com/Nike-Inc/sagerender/actions/workflows/python-test.yaml)
[![PyPi Release](https://github.com/Nike-Inc/sagerender/actions/workflows/python-build.yaml/badge.svg)](https://github.com/Nike-Inc/sagerender/actions/workflows/python-build.yaml)
[![Test](https://github.com/Nike-Inc/sagerender/actions/workflows/python-test.yaml/badge.svg?branch=main)](https://github.com/Nike-Inc/sagerender/actions/workflows/python-test.yaml?branch=main)
[![PyPi Release](https://github.com/Nike-Inc/sagerender/actions/workflows/python-build.yaml/badge.svg?branch=main)](https://github.com/Nike-Inc/sagerender/actions/workflows/python-build.yaml?branch=main)
[![Docker Build](https://github.com/Nike-Inc/sagerender/actions/workflows/docker-build.yaml/badge.svg)](https://github.com/Nike-Inc/sagerender/actions/workflows/docker-build.yaml)
![License](https://img.shields.io/pypi/l/knockoff)
![Python Versions](https://img.shields.io/pypi/pyversions/knockoff)
![GitHub License](https://img.shields.io/github/license/Nike-Inc/sagerender)
![Python Versions](https://img.shields.io/pypi/pyversions/sagerender)
![Docker Image Size](https://img.shields.io/docker/image-size/nikelab222/sagerender/latest)
![Python Wheel](https://img.shields.io/pypi/wheel/knockoff)
![Python Wheel](https://img.shields.io/pypi/wheel/sagerender)

![](extras/sagerender-pipeline-design.png)

Expand Down
Loading

0 comments on commit bfb8e6a

Please sign in to comment.