This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating TAS to 0.3.0, bumping dependencies: K8s to v1.24.2, go to v…
…1.18 This commit will also: - Bump TAS version to 0.3.0 - Bump K8s & go TAS dependencies to 1.24.2, respectively 1.18 - Bump E2E tests dependencies to K8s v1.24i.2, go 1.v18 - Migrating klog to v2.70 - Update Docker/Dockerfile to use go1.18 - - Add make image in the workflow - - Update golang alpine to 1.18 - - Disable VCS stamping - - - go: missing Git command. See https://golang.org/s/gogetcmd error obtaining VCS status: exec: "git": executable file not found in $PATH Use -buildvcs=false to disable VCS stamping. - - Update go-licenses to 1.2.0 - - Update TAS deployment file - - - From k8s 1.24 onwards node role labeled as 'master' is no longer used. However, 'node-role.kubernetes.io/master' may appear and it is kept in the tolerations to allow TAS be deployed in the control-plane node.
- Loading branch information
Showing
8 changed files
with
135 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,12 @@ | ||
# | ||
# Copyright (c) 2022 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
FROM golang:1.17-alpine as user_builder | ||
RUN adduser -D -u 10001 tas | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM golang:1.17-alpine as builder | ||
ARG DIR=telemetry-aware-scheduling | ||
ARG SRC_ROOT=/src_root | ||
COPY . ${SRC_ROOT} | ||
|
||
RUN mkdir -p /install_root/etc | ||
COPY --from=user_builder /etc/passwd /install_root/etc/passwd | ||
|
||
WORKDIR ${SRC_ROOT}/${DIR} | ||
RUN CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w" -o /install_root/extender ./cmd \ | ||
&& install -D ${SRC_ROOT}/${DIR}/LICENSE /install_root/usr/local/share/package-licenses/telemetry-aware-scheduling/LICENSE \ | ||
&& scripts/copy-modules-licenses.sh ./cmd /install_root/usr/local/share/ | ||
FROM golang:1.18-alpine as builder | ||
COPY . /src_root | ||
WORKDIR /src_root/telemetry-aware-scheduling | ||
ENV GOFLAGS -buildvcs=false | ||
RUN mkdir -p /install_root/etc && adduser -D -u 10001 tas && tail -1 /etc/passwd > /install_root/etc/passwd \ | ||
&& CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w" -o /install_root/extender ./cmd \ | ||
&& GO111MODULE=on go run github.com/google/[email protected] save "./cmd" --save_path /install_root/licenses | ||
|
||
FROM scratch | ||
WORKDIR / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.