Skip to content

Commit

Permalink
slem build script
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshdaivajna committed Dec 26, 2023
1 parent 44b8517 commit e4a8641
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions slem/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -ex

REGISTRATION_CODE=$1
mkdir /var/slem
cd /var/slem
mkdir repos
mkdir services
cd repos/
mkdir SUSE
mkdir opensuse
cd SUSE
cp /etc/zypp/repos.d/SUSE*.repo .
cd ../../services/
cp /etc/zypp/services.d/*.service .
cd ../repos/opensuse/
cat > opensuse-oss.repo <<EOF
[opensuse-oss]
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/distribution/leap/15.5/repo/oss/
EOF
cd ../..
SUSEConnect -r $REGISTRATION_CODE
systemctl restart docker
transactional-update pkg install docker
transactional-update register -p PackageHub/15.4/x86_64
docker build -t slem-base-image:v243 .

0 comments on commit e4a8641

Please sign in to comment.