Skip to content

Commit

Permalink
fix: Bump version and fix base image (#279)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
  • Loading branch information
gaocegege committed Jun 11, 2022
1 parent e048fc0 commit 9c237e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 4 additions & 2 deletions base-images/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

ROOT_DIR=`dirname $0`

ENVD_VERSION="${ENVD_VERSION:-0.0.1}"

cd ${ROOT_DIR}
# ubuntu 22.04 build require moby/buildkit version greater than 0.8.1
if ! docker buildx inspect cuda; then
Expand All @@ -12,15 +14,15 @@ fi
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

docker buildx build --build-arg IMAGE_NAME=docker.io/nvidia/cuda \
--build-arg ENVD_VERSION=0.0.1 \
--build-arg ENVD_VERSION=${ENVD_VERSION} \
--build-arg ENVD_SSH_IMAGE=ghcr.io/tensorchord/envd-ssh-from-scratch \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
--build-arg HTTPS_PROXY=${HTTPS_PROXY} \
--pull --push --platform linux/x86_64,linux/arm64 \
-t tensorchord/python:3.8-ubuntu20.04-cuda11.6-cudnn8 \
-f python3.8-ubuntu20.04-cuda11.6.Dockerfile .
docker buildx build \
--build-arg ENVD_VERSION=0.0.1 \
--build-arg ENVD_VERSION=${ENVD_VERSION} \
--build-arg ENVD_SSH_IMAGE=ghcr.io/tensorchord/envd-ssh-from-scratch \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
--build-arg HTTPS_PROXY=${HTTPS_PROXY} \
Expand Down
1 change: 0 additions & 1 deletion cmd/envd-ssh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
)

const (
envPort = "envd_SSH_PORT"
flagDebug = "debug"
flagAuthKey = "authorized-keys"
flagNoAuth = "no-auth"
Expand Down
14 changes: 14 additions & 0 deletions pkg/types/label.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2022 The envd Authors
//
// 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.

package types

const (
Expand Down

0 comments on commit 9c237e4

Please sign in to comment.