Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
chore: remove base template and its CI/CD (#1976)
devin-ai-integration[bot]2456bca68910
diff --git a/.github/workflows/templates.yml b/.github/workflows/templates.ymlindex f5cb0aea6..8de2c558f 100644--- a/.github/workflows/templates.yml+++ b/.github/workflows/templates.yml@@ -2,51 +2,11 @@ name: Build and push prepared templateson:workflow_dispatch:- inputs:- template:- description: 'Template to build'- required: true- default: all- type: choice- options:- - all- - base- - httpbinpermissions:contents: readjobs:- buildAndPushImage:- # Only the base template has a DockerHub counterpart.- if: ${{ inputs.template == 'all' || inputs.template == 'base' }}- defaults:- run:- working-directory: ./templates/base-- name: Build and Push Image to DockerHub- runs-on: ubuntu-22.04- steps:- - name: Checkout repository- uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0-- - name: Set up Docker Buildx- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0-- - name: Log in to DockerHub- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}-- - name: Build and push- run: |- docker buildx build \- --file e2b.Dockerfile \- --platform linux/amd64,linux/arm64 \- --push \- --tag ${{ secrets.DOCKERHUB_USERNAME }}/base:latest .-buildTemplate:name: Build and Publish E2B Templateruns-on: ubuntu-22.04@@ -57,20 +17,12 @@ jobs:- name: Build and install E2B CLIuses: ./.github/actions/build-cli- - name: Build and publish base template- if: ${{ inputs.template == 'all' || inputs.template == 'base' }}- working-directory: ./templates/base- env:- E2B_API_KEY: ${{ secrets.E2B_API_KEY }}- run: e2b template create base --memory-mb 512-# Sidecar the network transform tests spawn as a publicly reachable echo- # server. Stays private to the E2B team, like the base template — the- # tests that use it need our API key anyway. The ready command doubles as- # the build-time smoke test: the build only finishes once go-httpbin- # answers on the port the tests connect to.+ # server. Stays private to the E2B team — the tests that use it need our+ # API key anyway. The ready command doubles as the build-time smoke test:+ # the build only finishes once go-httpbin answers on the port the tests+ # connect to.- name: Build httpbin template- if: ${{ inputs.template == 'all' || inputs.template == 'httpbin' }}working-directory: ./templates/httpbinenv:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}diff --git a/templates/base/e2b.Dockerfile b/templates/base/e2b.Dockerfiledeleted file mode 100644index befa44d4f..000000000--- a/templates/base/e2b.Dockerfile+++ /dev/null@@ -1,58 +0,0 @@-FROM python:3.11.6--# Inspired by https://github.com/nodejs/docker-node/blob/main/20/bookworm/Dockerfile-RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \- build-essential curl git util-linux \- libbluetooth-dev tk-dev uuid-dev \- gh; \- rm -rf /var/lib/apt/lists/*--RUN groupadd -r node && useradd -r -g node -s /bin/bash -m node--ENV NODE_VERSION=20.9.0--RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \- && case "${dpkgArch##*-}" in \- amd64) ARCH='x64';; \- ppc64el) ARCH='ppc64le';; \- s390x) ARCH='s390x';; \- arm64) ARCH='arm64';; \- armhf) ARCH='armv7l';; \- i386) ARCH='x86';; \- *) echo "unsupported architecture"; exit 1 ;; \- esac \- # use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150- && export GNUPGHOME="$(mktemp -d)" \- # gpg keys listed at https://github.com/nodejs/node#release-keys- && set -ex \- && for key in \- 4ED778F539E3634C779C87C6D7062848A1AB005C \- 141F07595B7B3FFE74309A937405533BE57C7D57 \- 74F12602B6F1C4E913FAA37AD3A89613643B6201 \- DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 \- 61FC681DFB92A079F1685E77973F295594EC4689 \- 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 \- C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \- 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 \- C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C \- 108F52B48DB57BB0CC439B2997B01419BD92F80A \- A363A499291CBBC940DD62E41F10027AF002F8B0 \- ; do \- gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || \- gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \- done \- && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \- && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \- && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \- && gpgconf --kill all \- && rm -rf "$GNUPGHOME" \- && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \- && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \- && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \- && ln -s /usr/local/bin/node /usr/local/bin/nodejs \- # smoke tests- && node --version \- && npm --version--RUN npm install -g [email protected] \- && yarn --version