Compare commits

...

6 Commits

Author SHA1 Message Date
Serhiy Berezin
aaba61b386 Moved to Ubuntu-4.4.0-23.41-rancher kernel for newer BTRFS version first of all (since BTRFS is relatively young but is developed quite intensively) 2016-06-05 00:49:40 +00:00
Serhiy Berezin
d0357e9c32 Change repo paths to my forked till my os-base changes are pulled to original 2016-06-04 23:11:58 +00:00
Darren Shepherd
c09b807991 Merge pull request #860 from imikushin/rootfs-build-fix
Fix building rootfs for arm on amd64
2016-05-16 18:51:22 -07:00
Denise
a50d2e4c90 Update README.md 2016-05-13 14:39:35 -07:00
Denise
f5ae8d9dab Update README.md 2016-05-13 14:39:16 -07:00
Ivan Mikushin
1df1582459 Fix building rootfs for arm on amd64 2016-04-13 14:40:28 -07:00
6 changed files with 31 additions and 27 deletions

View File

@@ -35,6 +35,7 @@ ARG TOOLCHAIN
ENV TOOLCHAIN ${TOOLCHAIN}
RUN if [ "${TOOLCHAIN}" != "" ] && ! which ${TOOLCHAIN}-gcc; then \
apt-get update && \
apt-get install -y gcc-${TOOLCHAIN} g++-${TOOLCHAIN} \
;fi

View File

@@ -3,6 +3,7 @@ DEV_BUILD := 0
HOST_ARCH := amd64
ARCH := amd64
SUFFIX := $(if $(filter-out amd64,$(ARCH)),_$(ARCH))
HOST_SUFFIX := $(if $(filter-out amd64,$(HOST_ARCH)),_$(HOST_ARCH))
include build.conf
include build.conf.$(ARCH)
@@ -55,7 +56,7 @@ build/kernel/:
dist/artifacts/initrd: bin/ros assets/docker assets/selinux/policy.29 build/kernel/ build/images.tar assets/modules.tar.gz
mkdir -p $(dir $@)
SUFFIX=$(SUFFIX) DFS_IMAGE=$(DFS_IMAGE) DEV_BUILD=$(DEV_BUILD) \
HOST_SUFFIX=$(HOST_SUFFIX) SUFFIX=$(SUFFIX) DFS_IMAGE=$(DFS_IMAGE) DEV_BUILD=$(DEV_BUILD) \
KERNEL_RELEASE=$(KERNEL_RELEASE) ARCH=$(ARCH) ./scripts/mk-initrd.sh $@
@@ -89,7 +90,7 @@ build/images.tar: build/host_ros build/os-config.yml
dist/artifacts/rootfs.tar.gz: bin/ros assets/docker build/images.tar assets/selinux/policy.29 assets/modules.tar.gz
mkdir -p $(dir $@)
SUFFIX=$(SUFFIX) DFS_IMAGE=$(DFS_IMAGE) DEV_BUILD=$(DEV_BUILD) IS_ROOTFS=1 ./scripts/mk-initrd.sh $@
HOST_SUFFIX=$(HOST_SUFFIX) SUFFIX=$(SUFFIX) DFS_IMAGE=$(DFS_IMAGE) DEV_BUILD=$(DEV_BUILD) IS_ROOTFS=1 ./scripts/mk-initrd.sh $@
dist/artifacts/iso-checksums.txt: dist/artifacts/rancheros.iso

View File

@@ -14,12 +14,12 @@ it would really be bad if somebody did `docker rm -f $(docker ps -qa)` and delet
## Latest Release
**v0.4.4 - Docker 1.10.3- Linux 4.2.8**
**v0.4.5 - Docker 1.10.3- Linux 4.2.8**
### ISO
https://releases.rancher.com/os/latest/rancheros.iso
https://releases.rancher.com/os/v0.4.4/rancheros.iso
https://releases.rancher.com/os/v0.4.5/rancheros.iso
**Note**: you must login using `rancher` for username and password.
@@ -27,15 +27,16 @@ https://releases.rancher.com/os/v0.4.4/rancheros.iso
* https://releases.rancher.com/os/latest/initrd
* https://releases.rancher.com/os/latest/iso-checksums.txt
* https://releases.rancher.com/os/latest/rancheros-v0.4.4.tar.gz
* https://releases.rancher.com/os/latest/rancheros-v0.4.5.tar.gz
* https://releases.rancher.com/os/latest/rancheros.iso
* https://releases.rancher.com/os/latest/vmlinuz
* https://releases.rancher.com/os/v0.4.4/initrd
* https://releases.rancher.com/os/v0.4.4/iso-checksums.txt
* https://releases.rancher.com/os/v0.4.4/rancheros-v0.4.4.tar.gz
* https://releases.rancher.com/os/v0.4.4/rancheros.iso
* https://releases.rancher.com/os/v0.4.4/vmlinuz
* https://releases.rancher.com/os/v0.4.5/initrd
* https://releases.rancher.com/os/v0.4.5/iso-checksums.txt
* https://releases.rancher.com/os/v0.4.5/rancheros-v0.4.5.tar.gz
* https://releases.rancher.com/os/v0.4.5/rancheros.iso
* https://releases.rancher.com/os/v0.4.5/vmlinuz
**Note**: you can use `http` instead of `https` in the above URLs, e.g. for iPXE.
@@ -47,22 +48,22 @@ SSH keys are added to the **`rancher`** user, so you must log in using the **ran
Region | Type | AMI |
-------|------|------
ap-northeast-1 | HVM | [ami-f98a9797](https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchInstanceWizard:ami=ami-f98a9797)
ap-northeast-2 | HVM | [ami-4c08c022](https://console.aws.amazon.com/ec2/home?region=ap-northeast-2#launchInstanceWizard:ami=ami-4c08c022)
ap-southeast-1 | HVM | [ami-20914543](https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchInstanceWizard:ami=ami-20914543)
ap-southeast-2 | HVM | [ami-27a08244](https://console.aws.amazon.com/ec2/home?region=ap-southeast-2#launchInstanceWizard:ami=ami-27a08244)
eu-central-1 | HVM | [ami-7205e51d](https://console.aws.amazon.com/ec2/home?region=eu-central-1#launchInstanceWizard:ami=ami-7205e51d)
eu-west-1 | HVM | [ami-aec548dd](https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchInstanceWizard:ami=ami-aec548dd)
sa-east-1 | HVM | [ami-5a860836](https://console.aws.amazon.com/ec2/home?region=sa-east-1#launchInstanceWizard:ami=ami-5a860836)
us-east-1 | HVM | [ami-880f12e2](https://console.aws.amazon.com/ec2/home?region=us-east-1#launchInstanceWizard:ami=ami-880f12e2)
us-west-1 | HVM | [ami-ea7a058a](https://console.aws.amazon.com/ec2/home?region=us-west-1#launchInstanceWizard:ami=ami-ea7a058a)
us-west-2 | HVM | [ami-4f50a72f](https://console.aws.amazon.com/ec2/home?region=us-west-2#launchInstanceWizard:ami=ami-4f50a72f)
ap-northeast-1 | HVM | [ami-918761f0](https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchInstanceWizard:ami=ami-918761f0)
ap-northeast-2 | HVM | [ami-7874bc16](https://console.aws.amazon.com/ec2/home?region=ap-northeast-2#launchInstanceWizard:ami=ami-7874bc16)
ap-southeast-1 | HVM | [ami-c5e533a6](https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchInstanceWizard:ami=ami-c5e533a6)
ap-southeast-2 | HVM | [ami-4c7a552f](https://console.aws.amazon.com/ec2/home?region=ap-southeast-2#launchInstanceWizard:ami=ami-4c7a552f)
eu-central-1 | HVM | [ami-8740ade8](https://console.aws.amazon.com/ec2/home?region=eu-central-1#launchInstanceWizard:ami=ami-8740ade8)
eu-west-1 | HVM | [ami-6343d610](https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchInstanceWizard:ami=ami-6343d610)
sa-east-1 | HVM | [ami-0b991167](https://console.aws.amazon.com/ec2/home?region=sa-east-1#launchInstanceWizard:ami=ami-0b991167)
us-east-1 | HVM | [ami-812ec0ec](https://console.aws.amazon.com/ec2/home?region=us-east-1#launchInstanceWizard:ami=ami-812ec0ec)
us-west-1 | HVM | [ami-cc255dac](https://console.aws.amazon.com/ec2/home?region=us-west-1#launchInstanceWizard:ami=ami-cc255dac)
us-west-2 | HVM | [ami-58fe0238](https://console.aws.amazon.com/ec2/home?region=us-west-2#launchInstanceWizard:ami=ami-58fe0238)
### Google Compute Engine (Experimental)
We are providing a disk image that users can download and import for use in Google Compute Engine. The image can be obtained from the release artifacts for RancherOS v0.3.0 or later.
[Download Image](https://github.com/rancher/os/releases/download/v0.4.4/rancheros-v0.4.4.tar.gz)
[Download Image](https://github.com/rancher/os/releases/download/v0.4.5/rancheros-v0.4.5.tar.gz)
Please follow the directions at our [docs to launch in GCE](http://docs.rancher.com/os/running-rancheros/cloud/gce/).

View File

@@ -1,8 +1,8 @@
IMAGE_NAME=rancher/os
VERSION=v0.4.4-dev
IMAGE_NAME=tetatetit/os
VERSION=v0.4.5
DFS_IMAGE=rancher/docker:v1.10.3
SELINUX_POLICY_URL=https://github.com/rancher/refpolicy/releases/download/v0.0.2/policy.29
HOSTNAME_DEFAULT=rancher
OS_IMAGES_ROOT=rancher
OS_IMAGES_ROOT=tetatetit
OS_SERVICES_REPO=https://raw.githubusercontent.com/rancher/os-services

View File

@@ -1,7 +1,7 @@
DAPPER_BASE=ubuntu:16.04
TOOLCHAIN= #empty
COMPILED_KERNEL_URL=https://github.com/rancher/os-kernel/releases/download/Ubuntu-4.2.0-34.39-rancher/linux-4.2.8-ckt4-rancher-x86.tar.gz
COMPILED_KERNEL_URL=https://github.com/tetatetit/os-kernel/releases/download/Ubuntu-4.4.0-23.41-rancher-kvm/linux-4.4.10-rancher-x86.tar.gz
DOCKER_BINARY_URL=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3
OS_RELEASES_YML=https://releases.rancher.com/os/releases.yml
VBOX_MODULES_URL=https://github.com/rancher/os-vbox/releases/download/v0.0.2/vbox-modules.tar.gz
VBOX_MODULES_URL=https://github.com/tetatetit/os-vbox/releases/download/Ubuntu-4.4.0-23.41-rancher/vbox-modules.tar.gz

View File

@@ -4,6 +4,7 @@ set -ex
TARGET=$(pwd)/${1}
SUFFIX=${SUFFIX:-""}
HOST_SUFFIX=${HOST_SUFFIX:-""}
DFS_IMAGE=${DFS_IMAGE:?"DFS_IMAGE not set"}
IS_ROOTFS=${IS_ROOTFS:-0}
@@ -53,7 +54,7 @@ docker export ${DFS_ARCH} | tar xvf - -C ${INITRD_DIR} --exclude=usr/bin/dockerl
usr
if [ "$IS_ROOTFS" == "1" ]; then
DFS=$(docker run -d --privileged -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) ${DFS_IMAGE}${SUFFIX})
DFS=$(docker run -d --privileged -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) ${DFS_IMAGE}${HOST_SUFFIX})
trap "docker rm -fv ${DFS_ARCH} ${DFS}" EXIT
docker exec -i ${DFS} docker load < ${BUILD}/images.tar
docker stop ${DFS}