Skip to content

Commit

Permalink
script modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya-563 committed Sep 20, 2023
1 parent 90341cb commit d546036
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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
~
17 changes: 9 additions & 8 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resources:
- name: Divya-Buildroot
- name: buildroot
type: git
icon: github
source:
Expand All @@ -18,27 +18,28 @@ resources:

jobs:

- name: Divya-Buildroot
- name: Divya-Buildroot-build
plan:
- get: Divya-Buildroot
- get: buildroot
- task: prepare-and-build
privileged: true
config:
platform: linux
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}

0 comments on commit d546036

Please sign in to comment.