diff options
| author | Jamal Carvalho <jamal@golang.org> | 2021-02-16 14:38:52 -0500 |
|---|---|---|
| committer | Jamal Carvalho <jamal@golang.org> | 2021-02-18 15:12:51 +0000 |
| commit | e63acb0d2212c0dabdeea4a5066279bc3fdbbf35 (patch) | |
| tree | 7e9625cb688f9a9114c03baf6b66ba437034db9d /devtools | |
| parent | 26309642a4ab808b990ccda0293cf1738d4464bd (diff) | |
| download | go-x-pkgsite-e63acb0d2212c0dabdeea4a5066279bc3fdbbf35.tar.xz | |
devtools: remove legacy files
These files are no longer needed now that all.bash
has been updated to use devtools/docker-compose.sh.
Change-Id: I59b8fd7a195cc40f50834e6bfa27cd9b0f83ebc6
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/292697
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'devtools')
| -rw-r--r-- | devtools/config/Dockerfile.npm | 29 | ||||
| -rw-r--r-- | devtools/config/docker-compose.yaml | 20 | ||||
| -rwxr-xr-x | devtools/npm.sh | 28 |
3 files changed, 0 insertions, 77 deletions
diff --git a/devtools/config/Dockerfile.npm b/devtools/config/Dockerfile.npm deleted file mode 100644 index 02c0922d..00000000 --- a/devtools/config/Dockerfile.npm +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2020 The Go Authors. All rights reserved. -# Use of this source code is governed by a BSD-style -# license that can be found in the LICENSE file. - -FROM node:14.15.1 - -# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, -# Hebrew, Thai and a few others) -# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer -# installs, work. -RUN apt-get update \ - && apt-get install -y wget gnupg \ - && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ - && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ - && apt-get update \ - && apt-get install -y \ - google-chrome-stable \ - fonts-ipafont-gothic \ - fonts-wqy-zenhei \ - fonts-thai-tlwg \ - fonts-kacst \ - fonts-freefont-ttf \ - libxss1 \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /pkgsite - -ENTRYPOINT [ "npm" ] diff --git a/devtools/config/docker-compose.yaml b/devtools/config/docker-compose.yaml deleted file mode 100644 index 90a24b56..00000000 --- a/devtools/config/docker-compose.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2020 The Go Authors. All rights reserved. -# Use of this source code is governed by a BSD-style -# license that can be found in the LICENSE file. - -version: '3' -services: - npm: - build: - context: ../../ - dockerfile: devtools/config/Dockerfile.npm - environment: - FRONTEND_URL: http://host.docker.internal:8080 - image: pkgsite_npm - init: true - volumes: - - ../..:/pkgsite - # Mounts empty volumes in place of git directories so they can't - # be written to during npm package installs. - - /pkgsite/.git - - /pkgsite/private/.git diff --git a/devtools/npm.sh b/devtools/npm.sh deleted file mode 100755 index e065cc83..00000000 --- a/devtools/npm.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env -S bash -e - -# Copyright 2020 The Go Authors. All rights reserved. -# Use of this source code is governed by a BSD-style -# license that can be found in the LICENSE file. - -source devtools/lib.sh || { echo "Are you at repo root?"; exit 1; } - -if [[ ! -x "$(command -v docker-compose)" ]]; then - err "docker-compose must be installed: see https://docs.docker.com/compose/install/" - exit 1 -fi - -# Run npm install if node_modules directory does not exist. -if [ ! -d "node_modules" ] -then - runcmd docker-compose -f devtools/config/docker-compose.yaml run --rm npm install --quiet -fi - -# Run an npm command and capture the exit code. -runcmd docker-compose -f devtools/config/docker-compose.yaml run --rm npm $@ -code=$EXIT_CODE - -# Perform docker cleanup. -runcmd docker-compose -f devtools/config/docker-compose.yaml down --remove-orphans - -# Exit with the code from the npm command. -exit $code |
