Giter Site home page Giter Site logo

tritondatacenter / alpine-lx-brand-image-builder Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 8.0 56 KB

Scripts used for creating an lx-brand Alpine image

Home Page: https://docs.joyent.com/images/container-native-linux

License: Mozilla Public License 2.0

Shell 100.00%
smartos alpine lx-brand triton joyent

alpine-lx-brand-image-builder's Introduction

Alpine lx-brand Image Builder

Build Status (shellcheck)

This is a collection of scripts used for creating an lx-brand Alpine image.

Requirements

In order to use these scripts you'll need:

  • Alpine, Ubuntu or CentOS running in a VM (required for the install script).
  • A SmartOS (or SDC headnode) install (required for the create-lx-image script)

Note that the install script will fail if run in an lx-brand enironment.

Usage

  1. Run ./install -d <chroot> -m <mirror> -i <image name> -p <proper name> -u <image docs uunder Alpine to install Alpine in a given directory. This will create a tarball of the installation in your working directory (named <image name>-<YYMMDD>.tar.gz). See ./install -h for detailed usage.
  2. Copy the tarball to a SmartOS machine or SDC headnode and run ./create-lx-image -t /full/path/to/<image name>-<YYMMDD>.tar.gz (substituting the name of your tar file). This will create the image file and manifest.

alpine-lx-brand-image-builder's People

Contributors

chorrell avatar dcrudgington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpine-lx-brand-image-builder's Issues

running install to create my own image from fresh alpine linux lx zone shows error

created an alpine lx zone:

d8830f1e-3680-11e6-be72-2ba188e02d31 alpine-3 20160620 linux lx-dataset 2016-06-20

then i ran the install script from there:

./install -r 3.4 -a apk-tools-static-2.6.7-r0.apk -d /data/alpine -m http://mirrors.gigenet.com/alpinelinux/ -i alpine-3 -p "Alpine Linux" -D "Alpine 3.4.1 64-bit lx-brand image." -u https://docs.joyent.com/images/container-native-linux

but it fails w/ exit code 4 on the ===> Installing Alpine base step:

(1/16) Installing musl (1.1.14-r10)
(2/16) Installing busybox (1.24.2-r9)
Executing busybox-1.24.2-r9.post-install
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: busybox-1.24.2-r9.post-install: script exited wi
th error 1
(3/16) Installing alpine-baselayout (3.0.3-r0)
Executing alpine-baselayout-3.0.3-r0.pre-install
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: alpine-baselayout-3.0.3-r0.pre-install: script e
xited with error 1
Executing alpine-baselayout-3.0.3-r0.post-install
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: alpine-baselayout-3.0.3-r0.post-install: script
exited with error 1
(4/16) Installing openrc (0.21-r0)
Executing openrc-0.21-r0.post-install
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: openrc-0.21-r0.post-install: script exited with
error 1
(5/16) Installing alpine-conf (3.4.1-r0)
(6/16) Installing zlib (1.2.8-r2)
(7/16) Installing libcrypto1.0 (1.0.2h-r1)
(8/16) Installing libssl1.0 (1.0.2h-r1)
(9/16) Installing apk-tools (2.6.7-r0)
(10/16) Installing busybox-suid (1.24.2-r9)
(11/16) Installing busybox-initscripts (3.0-r2)
Executing busybox-initscripts-3.0-r2.post-install
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: busybox-initscripts-3.0-r2.post-install: script
exited with error 1
(12/16) Installing scanelf (1.1.6-r0)
(13/16) Installing musl-utils (1.1.14-r10)
(14/16) Installing libc-utils (0.7-r0)
(15/16) Installing alpine-keys (1.1-r0)
(16/16) Installing alpine-base (3.4.1-r0)
Executing busybox-1.24.2-r9.trigger
/native/usr/lib/amd64/lx_brand.so.1: not found.ERROR: busybox-1.24.2-r9.trigger: script exited with er
ror 1
4 errors; 7 MiB in 16 packages

i've tried symlinking /native into /data/alpine in the script before this stage, but it didn't work.

how do i get past this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.