This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch remove-odev in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 574654f9418a4fc2232d5751c751a5db1a89842b Author: Xuanwo <[email protected]> AuthorDate: Thu May 4 16:22:09 2023 +0800 ci: Remove not used odev tools Signed-off-by: Xuanwo <[email protected]> --- odev | 42 -------------------------------- scripts/devtools/Dockerfile | 59 --------------------------------------------- 2 files changed, 101 deletions(-) diff --git a/odev b/odev deleted file mode 100755 index 57bb8248..00000000 --- a/odev +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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. - -SCRIPT_PATH="$(cd "$(dirname $(realpath "$0"))" >/dev/null 2>&1 && pwd)" -REL_PATH="$(realpath `pwd` --relative-base=${SCRIPT_PATH})" - -CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}" -COMMAND="$@" - -# NOTE: create with runner user first to avoid permission issues -mkdir -p "${CARGO_HOME}/registry" - -_UID=$(id -u) -if [[ ${_UID} != "501" ]] && [[ $_UID != "1000" ]] && [[ $_UID != "1001" ]]; then - echo "warning: You might encounter permission issues when running this script, since the current uid is ${_UID}, not in [501,1000,1001]." >&2 - echo ":) feel free to ignore this warning if you do not need sudo." >&2 -fi - -exec docker run --rm --tty --net=host \ - --interactive \ - --env TERM=xterm-256color \ - --user $(id -u):$(id -g) \ - --volume "${CARGO_HOME}/registry:/opt/rust/cargo/registry" \ - --volume "${SCRIPT_PATH}:/workspace" \ - --workdir "/workspace/${REL_PATH}" \ - "ghcr.io/apache/opendal-devtools:latest" \ - /bin/bash -c "${COMMAND}" diff --git a/scripts/devtools/Dockerfile b/scripts/devtools/Dockerfile deleted file mode 100644 index 4f44f278..00000000 --- a/scripts/devtools/Dockerfile +++ /dev/null @@ -1,59 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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 ubuntu:22.04 - -ENV TERM xterm-256color -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update -yq && \ - apt-get install -yq locales sudo unzip file curl clang openjdk-11-jdk-headless libssl-dev make git ripgrep && \ - printf 'en_US.UTF-8 UTF-8\n' > /etc/locale.gen && \ - locale-gen && \ - rm -rf /var/lib/apt/lists/* - -ENV LANGUAGE en_US -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 - -RUN groupdel dialout && groupdel staff && \ - groupadd -g 20 staff && groupadd -g 121 docker && \ - useradd -u 1000 -g 100 builder && \ - useradd -u 1001 -g 121 runner && \ - useradd -u 501 -g 20 macos && \ - printf "builder,runner,macos ALL=(ALL:ALL) NOPASSWD:ALL\n" > /etc/sudoers.d/databend - -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable && \ - rm -rf /root/.cargo/git && \ - rm -rf /root/.cargo/registry && \ - mkdir -p /opt/rust && \ - mv /root/.cargo /opt/rust/cargo && \ - mv /root/.rustup /opt/rust/rustup - -RUN ln -s $(readlink -f `which javac` | sed "s:/bin/javac::") /opt/java - -ENV JAVA_HOME /opt/java -ENV LD_LIBRARY_PATH /opt/java/lib/server -ENV RUSTUP_HOME /opt/rust/rustup -ENV CARGO_HOME /opt/rust/cargo -ENV PATH /opt/rust/cargo/bin:/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin - -RUN curl -L --output cargo-binstall.tgz https://github.com/cargo-bins/cargo-binstall/releases/download/v0.19.3/cargo-binstall-x86_64-unknown-linux-gnu.tgz && \ - tar xf cargo-binstall*.tgz -C /opt/rust/cargo/bin -RUN cargo binstall taplo-cli --no-confirm - -VOLUME [ "/workspace", "/opt/rust/cargo/registry"]
