b9d28e3c56
- created required debian structure - successfully built the package - applied stx config changes and updated paths from /etc/docker to /etc/docker-distribution through patches Story: 2009221 Task: 43631 Signed-off-by: Daniel Safta <daniel.safta@windriver.com> Change-Id: I5af677c90342bae7c10101bf100e1db79c716670
21 lines
626 B
Bash
Executable File
21 lines
626 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
|
|
#link to the debian folder structure
|
|
SUBMODULE_SRC1=https://salsa.debian.org/go-team/packages/golang-github-docker-distribution/-/archive/debian/2.7.1+ds2-7/golang-github-docker-distribution-debian-2.7.1+ds2-7.tar.bz2
|
|
#link to source files
|
|
SUBMODULE_SRC2=https://github.com/docker/distribution/archive/v2.7.1.tar.gz
|
|
|
|
|
|
PKG_BUILD_NAME=$1
|
|
mkdir ${PKG_BUILD_NAME}
|
|
pushd ${PKG_BUILD_NAME}
|
|
|
|
PKG=golang-github-docker-distribution-debian-2.7.1+ds2-7.tar.bz2
|
|
wget $SUBMODULE_SRC1 -O $PKG
|
|
tar --bzip2 -xvf $PKG --strip-components 1
|
|
|
|
PKG=v2.7.1.tar.gz
|
|
wget $SUBMODULE_SRC2 -O $PKG
|
|
tar -xvzf $PKG --strip-components 1
|