Update to Go 1.10

This commit is contained in:
Riccardo Biraghi
2018-04-10 11:48:33 +01:00
parent 7c36a9ceea
commit 9a02ddfa48
4 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ sudo: required
language: go language: go
go: go:
- 1.9 - 1.10
services: services:
- docker - docker

View File

@@ -17,7 +17,7 @@ ARG BASE_IMAGE=ubuntu:16.04
############################################################################### ###############################################################################
# Build stage to build Go code # Build stage to build Go code
############################################################################### ###############################################################################
FROM golang:1.9 as builder FROM golang:1.10 as builder
WORKDIR /go/src/github.com/ibm-messaging/mq-container/ WORKDIR /go/src/github.com/ibm-messaging/mq-container/
COPY cmd/ ./cmd COPY cmd/ ./cmd
COPY internal/ ./internal COPY internal/ ./internal
@@ -34,7 +34,7 @@ RUN go test -v ./internal/...
############################################################################### ###############################################################################
# Main build stage, to build MQ image # Main build stage, to build MQ image
############################################################################### ###############################################################################
FROM $BASE_IMAGE FROM $BASE_IMAGE
# The URL to download the MQ installer from in tar.gz format # The URL to download the MQ installer from in tar.gz format
# This assumes an archive containing the MQ Debian (.deb) install packages # This assumes an archive containing the MQ Debian (.deb) install packages

View File

@@ -1,4 +1,4 @@
# © Copyright IBM Corporation 2017 # © Copyright IBM Corporation 2017, 2018
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
ARG BASE_IMAGE ARG BASE_IMAGE
# Build stage to build Go code # Build stage to build Go code
FROM golang:1.9 as builder FROM golang:1.10 as builder
WORKDIR /go/src/github.com/ibm-messaging/mq-container/ WORKDIR /go/src/github.com/ibm-messaging/mq-container/
COPY cmd/ ./cmd COPY cmd/ ./cmd
COPY internal/ ./internal COPY internal/ ./internal

View File

@@ -15,7 +15,7 @@
############################################################################### ###############################################################################
# Build stage to build Go code # Build stage to build Go code
############################################################################### ###############################################################################
FROM golang:1.9 as builder FROM golang:1.10 as builder
WORKDIR /go/src/github.com/ibm-messaging/mq-container/ WORKDIR /go/src/github.com/ibm-messaging/mq-container/
COPY cmd/ ./cmd COPY cmd/ ./cmd
COPY internal/ ./internal COPY internal/ ./internal
@@ -59,4 +59,4 @@ RUN chmod +x /usr/local/bin/runmq*
EXPOSE 9443 EXPOSE 9443
ENTRYPOINT ["runmqdevserver"] ENTRYPOINT ["runmqdevserver"]