Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devcontainer improvements #423

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
39 changes: 39 additions & 0 deletions .devcontainer/devcontainer.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM mcr.microsoft.com/devcontainers/base:bookworm

USER vscode

# Install Go
ENV GOTOOLCHAIN=local
ENV GOPATH /home/vscode/go
ENV PATH $GOPATH/bin:/home/vscode/.local/go/bin:$PATH
COPY --from=golang:bookworm --chown=vscode:vscode /usr/local/go /home/vscode/.local
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin"

# Install nvm
RUN <<EOF
export PROFILE=/dev/null
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
cat <<EOS | tee --append /home/vscode/.bashrc /home/vscode/.zshrc
export NVM_DIR="\$HOME/.nvm"
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" # This loads nvm
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion" # This loads nvm bash_completion
EOS
EOF

# Install yq
COPY --from=mikefarah/yq /usr/bin/yq /home/vscode/.local/bin/yq

# Install jq, Python
ENV VIRTUAL_ENV="/home/vscode/venv"
RUN <<EOF
sudo apt-get update
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y install --no-install-recommends \
jq \
python3 python3-pip python3-venv
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*

python3 -m venv "${VIRTUAL_ENV}"
EOF
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
25 changes: 5 additions & 20 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
{
"name": "rapids-site",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"forwardPorts": [
1313
],
"features": {
"ghcr.io/devcontainers/features/go:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "none",
"nodeGypDependencies": false
},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jqVersion": "latest",
"yqVersion": "latest"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "latest",
"installTools": false
}
},
"dockerComposeFile": "docker-compose.yaml",
"service": "devcontainer",
"workspaceFolder": "/workspace/rapids.ai",
"forwardPorts": [1313],
"postCreateCommand": "./scripts/devcontainer-init.sh"
}
}
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
13 changes: 13 additions & 0 deletions .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.3'

services:
devcontainer:
build:
context: .
dockerfile: devcontainer.Dockerfile
volumes:
- ..:/workspace/rapids.ai
command: /bin/sh -c "while sleep 1000; do :; done"
# TODO: add a reverse proxy & Hugo container. The reverse proxy container should
# parse the redirects in the output of `scripts/vercel/config.mjs` to ensure
# local development behaves like preview environments on PRs.
16 changes: 8 additions & 8 deletions data/posts/medium.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#
# This file was automatically generated by "get_medium.py"
#
- date: Tue, 27 Aug 2024 20:19:38 GMT
link: https://medium.com/rapids-ai/rapids-24-08-better-scalability-performance-and-cpu-gpu-interoperability-f88086386da6
poster: Manas Singh
text: "RAPIDS 24.08 is now available with significant updates geared towards processing\
\ larger workloads and seamless CPU/GPU interoperability. Read on for more\_details!\
\ cuDF\u2019s pandas accelerator mode\u200A\u2014\u200Athe zero-code-change accelerator\
\ for pandas workflows\u200A\u2014\u200Acan now speed u..."
title: 'RAPIDS 24.08: Better scalability, performance, and CPU/GPU interoperability'
- date: Wed, 24 Apr 2024 19:12:31 GMT
link: https://medium.com/rapids-ai/rapids-24-04-release-c11cf44c3e23
poster: Nick Becker
Expand Down Expand Up @@ -73,11 +81,3 @@
of these goals cuSpatial 23.04 includes multiple new features, as well as a new
notebook that shows off the ca...
title: cuSpatial 23.04
- date: Thu, 11 May 2023 16:01:54 GMT
link: https://medium.com/rapids-ai/intro-to-graph-neural-networks-with-cugraph-pyg-6fe32c93a2d0
poster: Alex Barghi
text: Introduction Graph Neural Networks (GNNs) are one of the fastest-growing tools
in machine learning. GNNs combine a rich array of feature data (similar to the
input of a traditional neural network) with network structure (represented as
a graph). Depending on the work...
title: Intro to Graph Neural Networks with cuGraph-PyG
1 change: 1 addition & 0 deletions scripts/get_medium.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import requests
import xmltodict
import yaml
Expand Down