Skip to content

Commit e40caec

Browse files
committed
Install atlas and buf
1 parent f4455b8 commit e40caec

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
# See https://aka.ms/devcontainer.json for documentation on devcontainer.json properties.
2-
# For language-specific properties, see https://aka.ms/dev-containers-non-root.
31
FROM mcr.microsoft.com/devcontainers/python:0-3.11
42

53
COPY requirements.txt /tmp/pip-tmp/
64
RUN pip install --no-cache-dir -r /tmp/pip-tmp/requirements.txt
75

86
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9-
&& apt-get -y install --no-install-recommends postgresql-client
7+
&& apt-get -y install --no-install-recommends postgresql-client
8+
9+
# Install Atlas
10+
RUN curl -sSf https://atlasgo.sh | sh -s -- -y
11+
12+
# Install buf
13+
ENV BIN="/usr/local/bin"
14+
ENV BUF_VERSION="1.57.0"
15+
RUN curl -sSL \
16+
"https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/buf-$(uname -s)-$(uname -m)" \
17+
-o "${BIN}/buf" && chmod +x "${BIN}/buf"

.devcontainer/devcontainer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
"vscode": {
1010
"extensions": [
1111
"ms-python.python",
12-
"ms-python.vscode-pylance",
13-
"tamasfe.even-better-toml",
1412
"redhat.vscode-yaml"
1513
],
1614
"settings": {

0 commit comments

Comments
 (0)