Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dev/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

FROM python:3.7
FROM python:3.12

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -52,7 +52,7 @@ RUN apt-get update \
RUN pip install numpy jaxlib tensorflow tensorflow-datasets matplotlib msgpack \
jupyter pytest pytest-xdist \
twine \
sphinx sphinx_rtd_theme ipykernel nbsphinx recommonmark sklearn
sphinx sphinx_rtd_theme ipykernel nbsphinx recommonmark scikit-learn

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
2 changes: 1 addition & 1 deletion dev/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "pip install -r requirements.txt",
"runArgs": ["-v", "${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh-localhost:ro"],
"postCreateCommand": "sudo cp -r /root/.ssh-localhost ~/.ssh && sudo chown -R $(id -u):$(id -g) ~/.ssh && chmod 700 ~/.ssh && chmod 600 ~/.ssh/* && pip install -e ./flax",
"postCreateCommand": "sudo cp -r /root/.ssh-localhost ~/.ssh && sudo chown -R $(id -u):$(id -g) ~/.ssh && chmod 700 ~/.ssh && chmod 600 ~/.ssh/* && pip install -e .",

// Uncomment the next line to have VS Code connect as an existing non-root user in the container.
// On Linux, by default, the container user's UID/GID will be updated to match your local user. See
Expand Down
5 changes: 4 additions & 1 deletion dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ the environments used by contributors and maintainers.
5. Re-open the folder workspace using the remote containers extension.
VSCode should recommend this action in a popup. Alternatively,
use the green button in the bottom left container to control the
remote extension.
remote extension.

## Troubleshoot:
If you have the following error `~/.docker/buildx/current: permission denied`, try running `sudo chown -R $(whoami) ~/.docker`
Loading