From d5460369025dfff38d31962f4d520ac7cada6979 Mon Sep 17 00:00:00 2001 From: Divya-563 <47666047+Divya-563@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:08:14 +0200 Subject: [PATCH] script modified --- Dockerfile | 10 +++++----- build.sh | 5 ++++- ci/pipeline.yml | 17 +++++++++-------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1b86fe70fe6..02229816b851 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM ubuntu:22.04 -COPY buildroot /buildroot -WORKDIR /buildroot RUN apt-get update -RUN apt-get install build-essential git subversion cvs unzip whois ncurses-dev bc mercurial pmount gcc-multilib g++-multilib libgmp3-dev libmpc-dev liblz4-tool +RUN apt-get install -y build-essential git subversion cvs unzip whois ncurses-dev bc mercurial pmount gcc-multilib g++-multilib libgmp3-dev libmpc-dev liblz4-tool COPY build.sh /usr/local/bin -ENTRYPOINT ["./build.sh"] -#RUN make raspberrypi3_wpe_ml_defconfig && make +chmod 0777 -R /usr/local/bin +chmod 0777 /usr/local/bin +#ENTRYPOINT ["./build.sh"] +RUN make raspberrypi3_wpe_ml_defconfig && make diff --git a/build.sh b/build.sh index 71df1a60561b..863c1be7f1d7 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,7 @@ -#!/usr/bin/env bash +#!/bin/bash + +apt-get update +apt-get install -y build-essential git subversion cvs unzip whois ncurses-dev bc mercurial pmount gcc-multilib g++-multilib libgmp3-dev libmpc-dev liblz4-tool make raspberrypi3_wpe_defconfig && make ~ diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 51d4c6692690..5b6c37b796b5 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -1,5 +1,5 @@ resources: -- name: Divya-Buildroot +- name: buildroot type: git icon: github source: @@ -18,9 +18,9 @@ resources: jobs: -- name: Divya-Buildroot +- name: Divya-Buildroot-build plan: - - get: Divya-Buildroot + - get: buildroot - task: prepare-and-build privileged: true config: @@ -28,17 +28,18 @@ jobs: image_resource: type: registry-image source: - repository: ubuntu + repository: vito/oci-build-task inputs: - - name: Divya-Buildroot - path: . + - name: buildroot outputs: - name: image params: - CONTEXT: Divya-Buildroot + CONTEXT: buildroot dockerfile: ./buildroot/Dockerfile run: # binary used to build the image - path: ls + path: build + # path: /bin/sh + # args: ["./build.sh"] - put: buildroot-docker-image params: {image: image/image.tar}