diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index fbea1475..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,65 +0,0 @@ -stages: -- prepare -- build -- deploy - -variables: - DOCKER_FILE: Dockerfile - DOCKER_TAG: latest - DOCKER_IMAGE: ${CI_REGISTRY_IMAGE} - IMAGE: ${CI_REGISTRY_IMAGE} - GIT_SUBMODULE_STRATEGY: normal - GIT_LFS_SKIP_SMUDGE: 1 - FF_GITLAB_REGISTRY_HELPER_IMAGE: 1 - -.prepare:docker: &prepare_docker - stage: prepare - image: - name: docker - before_script: - - docker version - - docker login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" - script: - - docker build -f ${DOCKER_FILE} -t ${DOCKER_IMAGE}:${DOCKER_TAG} . - - docker push ${DOCKER_IMAGE}:${DOCKER_TAG} - tags: - - docker - -prepare:docker: - <<: *prepare_docker - -build:loader: - stage: build - image: ${CI_REGISTRY_IMAGE} - script: - - cargo xtask build --target x86_64 --release - artifacts: - paths: - - target/x86_64/release/rusty-loader - -.deploy:loader: &loader - stage: deploy - dependencies: - - build:loader - image: - name: docker - before_script: - - docker version - - docker login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" - script: - - | - cat << END > ${DOCKER_FILE} - FROM alpine:3.14 - RUN apk add --no-cache qemu-system-x86_64 qemu-modules - ADD target/x86_64/release/rusty-loader /hermit/ - END - - docker build -f ${DOCKER_FILE} -t ${DOCKER_IMAGE}/loader:latest . - - docker push ${DOCKER_IMAGE}/loader:latest - tags: - - docker - only: - refs: - - master - -deploy:loader: - <<: *loader diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a43e4de9..00000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM ubuntu:latest - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && \ - apt-get -y install cpu-checker util-linux apt-transport-https curl wget binutils build-essential gcc libtool bsdmainutils pkg-config libssl-dev git qemu-kvm qemu-system-x86 nasm seabios qemu-utils fdisk grub-pc grub-pc-bin grub-imageboot grub-legacy-ec2 multiboot kpartx gzip && \ - apt-get clean - -# Install Rust toolchain -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal -RUN /root/.cargo/bin/rustup component add rust-src -RUN /root/.cargo/bin/rustup component add llvm-tools-preview - -ENV PATH="/root/.cargo/bin:/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/:${PATH}" -ENV EDITOR=vim - -# Switch back to dialog for any ad-hoc use of apt-get -ENV DEBIAN_FRONTEND=dialog -