Commit 0a080bef by Lukas Siatka Committed by GitHub

DevEnv: updates nodejs from 10.x to 12.x and golang to 1.13 in ci-deploy dockerfile. (#20405)

* DevEnv: updates nodejs to 12.x and golang to 1.13

* Updates CI-build and CI-deploy image versions

* DevEnv: updates update repo readme

* DevEnv: updates build container version
parent 4ddb113b
...@@ -19,7 +19,7 @@ version: 2 ...@@ -19,7 +19,7 @@ version: 2
jobs: jobs:
mysql-integration-test: mysql-integration-test:
docker: docker:
- image: circleci/golang:1.13.1 - image: circleci/golang:1.13.4
- image: circleci/mysql:5.6-ram - image: circleci/mysql:5.6-ram
environment: environment:
MYSQL_ROOT_PASSWORD: rootpass MYSQL_ROOT_PASSWORD: rootpass
...@@ -50,7 +50,7 @@ jobs: ...@@ -50,7 +50,7 @@ jobs:
postgres-integration-test: postgres-integration-test:
docker: docker:
- image: circleci/golang:1.13.1 - image: circleci/golang:1.13.4
- image: circleci/postgres:9.3-ram - image: circleci/postgres:9.3-ram
environment: environment:
POSTGRES_USER: grafanatest POSTGRES_USER: grafanatest
...@@ -80,7 +80,7 @@ jobs: ...@@ -80,7 +80,7 @@ jobs:
cache-server-test: cache-server-test:
docker: docker:
- image: circleci/golang:1.13.1 - image: circleci/golang:1.13.4
- image: circleci/redis:4-alpine - image: circleci/redis:4-alpine
- image: memcached - image: memcached
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
...@@ -105,7 +105,7 @@ jobs: ...@@ -105,7 +105,7 @@ jobs:
end-to-end-test: end-to-end-test:
docker: docker:
- image: circleci/node:10-browsers - image: circleci/node:12-browsers
- image: grafana/grafana-dev:master-$CIRCLE_SHA1 - image: grafana/grafana-dev:master-$CIRCLE_SHA1
steps: steps:
- run: dockerize -wait tcp://127.0.0.1:3000 -timeout 120s - run: dockerize -wait tcp://127.0.0.1:3000 -timeout 120s
...@@ -144,7 +144,7 @@ jobs: ...@@ -144,7 +144,7 @@ jobs:
end-to-end-test-release: end-to-end-test-release:
docker: docker:
- image: circleci/node:10-browsers - image: circleci/node:12-browsers
- image: grafana/grafana-dev:$CIRCLE_TAG - image: grafana/grafana-dev:$CIRCLE_TAG
steps: steps:
- run: dockerize -wait tcp://127.0.0.1:3000 -timeout 120s - run: dockerize -wait tcp://127.0.0.1:3000 -timeout 120s
...@@ -199,7 +199,7 @@ jobs: ...@@ -199,7 +199,7 @@ jobs:
lint-go: lint-go:
docker: docker:
- image: circleci/golang:1.13.1 - image: circleci/golang:1.13.4
environment: environment:
# we need CGO because of go-sqlite3 # we need CGO because of go-sqlite3
CGO_ENABLED: 1 CGO_ENABLED: 1
...@@ -221,7 +221,7 @@ jobs: ...@@ -221,7 +221,7 @@ jobs:
test-frontend: test-frontend:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
steps: steps:
- checkout - checkout
- run: - run:
...@@ -251,7 +251,7 @@ jobs: ...@@ -251,7 +251,7 @@ jobs:
test-backend: test-backend:
docker: docker:
- image: circleci/golang:1.13.1 - image: circleci/golang:1.13.4
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -273,7 +273,7 @@ jobs: ...@@ -273,7 +273,7 @@ jobs:
build-all: build-all:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -328,7 +328,7 @@ jobs: ...@@ -328,7 +328,7 @@ jobs:
build: build:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -368,7 +368,7 @@ jobs: ...@@ -368,7 +368,7 @@ jobs:
build-fast-backend: build-fast-backend:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -396,7 +396,7 @@ jobs: ...@@ -396,7 +396,7 @@ jobs:
build-fast-frontend: build-fast-frontend:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -431,7 +431,7 @@ jobs: ...@@ -431,7 +431,7 @@ jobs:
build-fast-package: build-fast-package:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -469,7 +469,7 @@ jobs: ...@@ -469,7 +469,7 @@ jobs:
build-fast-save: build-fast-save:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -676,7 +676,7 @@ jobs: ...@@ -676,7 +676,7 @@ jobs:
build-enterprise: build-enterprise:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -722,7 +722,7 @@ jobs: ...@@ -722,7 +722,7 @@ jobs:
build-all-enterprise: build-all-enterprise:
docker: docker:
- image: grafana/build-container:1.2.12 - image: grafana/build-container:1.2.13
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
...@@ -780,7 +780,7 @@ jobs: ...@@ -780,7 +780,7 @@ jobs:
deploy-enterprise-master: deploy-enterprise-master:
docker: docker:
- image: grafana/grafana-ci-deploy:1.2.2 - image: grafana/grafana-ci-deploy:1.2.3
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
...@@ -802,7 +802,7 @@ jobs: ...@@ -802,7 +802,7 @@ jobs:
deploy-enterprise-release: deploy-enterprise-release:
docker: docker:
- image: grafana/grafana-ci-deploy:1.2.2 - image: grafana/grafana-ci-deploy:1.2.3
steps: steps:
- checkout - checkout
- run: - run:
...@@ -852,7 +852,7 @@ jobs: ...@@ -852,7 +852,7 @@ jobs:
deploy-master: deploy-master:
docker: docker:
- image: grafana/grafana-ci-deploy:1.2.2 - image: grafana/grafana-ci-deploy:1.2.3
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
...@@ -876,7 +876,7 @@ jobs: ...@@ -876,7 +876,7 @@ jobs:
deploy-release: deploy-release:
docker: docker:
- image: grafana/grafana-ci-deploy:1.2.2 - image: grafana/grafana-ci-deploy:1.2.3
steps: steps:
- checkout - checkout
- run: - run:
...@@ -952,7 +952,7 @@ jobs: ...@@ -952,7 +952,7 @@ jobs:
store-build-artifacts: store-build-artifacts:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
...@@ -990,7 +990,7 @@ jobs: ...@@ -990,7 +990,7 @@ jobs:
build-grafana-packages: build-grafana-packages:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
steps: steps:
- checkout - checkout
- run: - run:
...@@ -1014,7 +1014,7 @@ jobs: ...@@ -1014,7 +1014,7 @@ jobs:
release-next-packages: release-next-packages:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
steps: steps:
- checkout - checkout
- run: - run:
...@@ -1040,7 +1040,7 @@ jobs: ...@@ -1040,7 +1040,7 @@ jobs:
release-packages: release-packages:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
steps: steps:
- checkout - checkout
- run: - run:
......
# Golang build container # Golang build container
FROM golang:1.13.1-alpine FROM golang:1.13.4-alpine
RUN apk add --no-cache gcc g++ RUN apk add --no-cache gcc g++
...@@ -16,7 +16,7 @@ COPY build.go package.json ./ ...@@ -16,7 +16,7 @@ COPY build.go package.json ./
RUN go run build.go build RUN go run build.go build
# Node build container # Node build container
FROM node:10.14.2-alpine FROM node:12.13.0-alpine
# PhantomJS # PhantomJS
RUN apk add --no-cache curl &&\ RUN apk add --no-cache curl &&\
......
FROM golang:1.13.1 AS go-builder FROM golang:1.13.4 AS go-builder
WORKDIR /src/grafana WORKDIR /src/grafana
...@@ -12,7 +12,7 @@ COPY pkg pkg/ ...@@ -12,7 +12,7 @@ COPY pkg pkg/
RUN go run build.go build RUN go run build.go build
FROM node:10.17 AS js-builder FROM node:12.13 AS js-builder
# PhantomJS # PhantomJS
RUN apt-get update && apt-get install -y curl &&\ RUN apt-get update && apt-get install -y curl &&\
......
# This Dockerfile builds an image for a client_golang example. # This Dockerfile builds an image for a client_golang example.
# Builder image, where we build the example. # Builder image, where we build the example.
FROM golang:1.13.0 AS builder FROM golang:1.13.4 AS builder
# Download prometheus/client_golang/examples/random first # Download prometheus/client_golang/examples/random first
RUN go get github.com/prometheus/client_golang/examples/random RUN go get github.com/prometheus/client_golang/examples/random
WORKDIR /go/src/github.com/prometheus/client_golang WORKDIR /go/src/github.com/prometheus/client_golang
......
...@@ -275,6 +275,6 @@ ...@@ -275,6 +275,6 @@
"puppeteer": "node_modules/puppeteer-core" "puppeteer": "node_modules/puppeteer-core"
}, },
"engines": { "engines": {
"node": ">=10 <11" "node": ">=12 <13"
} }
} }
...@@ -76,7 +76,7 @@ FROM ubuntu:18.04 ...@@ -76,7 +76,7 @@ FROM ubuntu:18.04
ENV GOVERSION=1.13.4 \ ENV GOVERSION=1.13.4 \
PATH=/usr/local/go/bin:$PATH \ PATH=/usr/local/go/bin:$PATH \
GOPATH=/go \ GOPATH=/go \
NODEVERSION=10.17.0 NODEVERSION=12.13.0
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
......
#!/bin/bash #!/bin/bash
set -eo pipefail set -eo pipefail
_version="1.2.12" _version="1.2.13"
_tag="grafana/build-container:${_version}" _tag="grafana/build-container:${_version}"
_dpath=$(dirname "${BASH_SOURCE[0]}") _dpath=$(dirname "${BASH_SOURCE[0]}")
......
FROM circleci/golang:1.11 FROM circleci/golang:1.13
RUN git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly && \ RUN git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly && \
cd $GOPATH/src/github.com/aptly-dev/aptly && \ cd $GOPATH/src/github.com/aptly-dev/aptly && \
......
#!/bin/bash #!/bin/bash
_version="1.2.2" _version="1.2.3"
_tag="grafana/grafana-ci-deploy:${_version}" _tag="grafana/grafana-ci-deploy:${_version}"
docker build -t $_tag . docker build -t $_tag .
......
...@@ -5,9 +5,9 @@ os: Windows Server 2012 R2 ...@@ -5,9 +5,9 @@ os: Windows Server 2012 R2
clone_folder: c:\gopath\src\github.com\grafana\grafana clone_folder: c:\gopath\src\github.com\grafana\grafana
environment: environment:
nodejs_version: "8" nodejs_version: "12"
GOPATH: C:\gopath GOPATH: C:\gopath
GOVERSION: 1.11.5 GOVERSION: 1.13.4
install: install:
- rmdir c:\go /s /q - rmdir c:\go /s /q
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
It's possible to test the repo updates for rpm and deb by running the test scripts within a docker container like this. Tests are being executed by using two buckets on gcp setup for testing. It's possible to test the repo updates for rpm and deb by running the test scripts within a docker container like this. Tests are being executed by using two buckets on gcp setup for testing.
```bash ```bash
docker run -ti --rm -u 0:0 grafana/grafana-ci-deploy:1.2.2 bash # 1.2.2 is the newest image at the time of writing docker run -ti --rm -u 0:0 grafana/grafana-ci-deploy:1.2.3 bash # 1.2.3 is the newest image at the time of writing
# in the container: # in the container:
mkdir -p /dist mkdir -p /dist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment