forked from RackHD/on-imagebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_oem.sh
executable file
·40 lines (34 loc) · 1.11 KB
/
build_oem.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
BUILD_ARTIFACT_PATH=/tmp/on-imagebuilder/builds
mkdir -p $BUILD_ARTIFACT_PATH
# build docker image for intel
pushd oem/intel-flash
sudo docker build -t rackhd/micro .
sudo docker save rackhd/micro | xz -z > intel.flash.docker.tar.xz
cp intel.flash.docker.tar.xz $BUILD_ARTIFACT_PATH
popd
# build docker image for quanta
pushd oem/quanta-flash
sudo docker build -t rackhd/micro .
sudo docker save rackhd/micro | xz -z > quanta.flash.docker.tar.xz
cp quanta.flash.docker.tar.xz $BUILD_ARTIFACT_PATH
popd
# build docker image for dell
pushd oem/dell-raid
sudo docker build -t rackhd/micro .
sudo docker save rackhd/micro | xz -z > dell.raid.docker.tar.xz
cp dell.raid.docker.tar.xz $BUILD_ARTIFACT_PATH
popd
# build docker image for raid
pushd oem/raid
sudo docker build -t rackhd/micro .
sudo docker save rackhd/micro | xz -z > raid.docker.tar.xz
cp raid.docker.tar.xz $BUILD_ARTIFACT_PATH
popd
# build docker image for secure erase
pushd oem/secure-erase
sudo docker build -t rackhd/micro .
sudo docker save rackhd/micro | xz -z > secure.erase.docker.tar.xz
cp secure.erase.docker.tar.xz $BUILD_ARTIFACT_PATH
popd