http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/roles/spidermonkey/tasks/main.yml ---------------------------------------------------------------------- diff --git a/ansible/roles/spidermonkey/tasks/main.yml b/ansible/roles/spidermonkey/tasks/main.yml deleted file mode 100644 index e26ddfe..0000000 --- a/ansible/roles/spidermonkey/tasks/main.yml +++ /dev/null @@ -1,49 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- name: download Spidermonkey 1.8.5 - get_url: - url: "http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz" - dest: /tmp/js185-1.0.0.tar.gz - -- name: unpack Spidermonkey 1.8.5 - unarchive: - src: /tmp/js185-1.0.0.tar.gz - dest: /opt - copy: no - -- name: patch source for debian9 build - patch: - src: "{{ role_path }}/files/fix-811665.patch" - basedir: /opt/js-1.8.5/ - strip: 1 - when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9" - -- name: configure Spidermonkey 1.8.5 - command: ./configure --prefix=/usr --with-system-nspr --disable-tests --disable-strip --enable-ctypes --enable-threadsafe --disable-methodjit - args: - chdir: /opt/js-1.8.5/js/src - -- name: make Spidermonkey 1.8.5 - command: make - args: - chdir: /opt/js-1.8.5/js/src - -- name: make install Spidermonkey 1.8.5 - command: make install - args: - chdir: /opt/js-1.8.5/js/src
http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/roles/ubuntu-1204/vars/main.yml ---------------------------------------------------------------------- diff --git a/ansible/roles/ubuntu-1204/vars/main.yml b/ansible/roles/ubuntu-1204/vars/main.yml deleted file mode 100644 index 268c9d0..0000000 --- a/ansible/roles/ubuntu-1204/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -erlang_solutions_key_url: http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc -erlang_solutions_apt_repo_url: deb http://packages.erlang-solutions.com/ubuntu precise contrib http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/roles/ubuntu-1404/vars/main.yml ---------------------------------------------------------------------- diff --git a/ansible/roles/ubuntu-1404/vars/main.yml b/ansible/roles/ubuntu-1404/vars/main.yml deleted file mode 100644 index 1d643be..0000000 --- a/ansible/roles/ubuntu-1404/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -erlang_solutions_key_url: http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc -erlang_solutions_apt_repo_url: deb http://packages.erlang-solutions.com/ubuntu trusty contrib http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/roles/ubuntu-1604/vars/main.yml ---------------------------------------------------------------------- diff --git a/ansible/roles/ubuntu-1604/vars/main.yml b/ansible/roles/ubuntu-1604/vars/main.yml deleted file mode 100644 index 6fdd05e..0000000 --- a/ansible/roles/ubuntu-1604/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -erlang_solutions_key_url: http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc -erlang_solutions_apt_repo_url: deb http://packages.erlang-solutions.com/ubuntu xenial contrib http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/run-ansible-local.sh ---------------------------------------------------------------------- diff --git a/ansible/run-ansible-local.sh b/ansible/run-ansible-local.sh deleted file mode 100755 index f9af1db..0000000 --- a/ansible/run-ansible-local.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# CAUTION: This script runs the Ansible scripts directly on your machine -# instead of inside a Docker container or Vagrant box. It might mess up your -# system. Only use this if you know what you are doing. - -# Call this script with sudo (that is `sudo ./run-local.sh` to run the playbook -# locally, without ssh. You can optionally provide a tag -# (http://docs.ansible.com/playbooks_tags.html) as an additional argument. - -set -e - -if [ "$(id -u)" != "0" ]; then - echo "This script needs to run with root privileges." - echo "Please start it as root or with sudo." - exit 1 -fi - -pushd `dirname $0` - -if [[ -n "$1" ]]; then - TAG="-t $1" -fi - -ANSIBLE_FORCE_COLOR=1 ANSIBLE_NOCOWS=1 \ - ansible-playbook \ - --connection=local \ - --inventory-file=./docker-inventories/ubuntu-14.04-erlang-18.3 \ - --sudo \ - $TAG \ - site.yml - -popd http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-12.04-base.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-12.04-base.yml b/ansible/ubuntu-12.04-base.yml deleted file mode 100644 index f2f5d60..0000000 --- a/ansible/ubuntu-12.04-base.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1204 - - { role: nodesource.node, nodejs_version: '6.x' } - - dependencies-debian - - lintian-ubuntu - - common - - spidermonkey http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-12.04-erlang-18.3.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-12.04-erlang-18.3.yml b/ansible/ubuntu-12.04-erlang-18.3.yml deleted file mode 100644 index 7faf645..0000000 --- a/ansible/ubuntu-12.04-erlang-18.3.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - vars: - erlang_solutions_pkg_ver: "1:18.3-1" - remote_user: root - roles: - - ubuntu-1204 - - erlang-esl-debian-pkgs http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-12.04-erlang-default.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-12.04-erlang-default.yml b/ansible/ubuntu-12.04-erlang-default.yml deleted file mode 100644 index f792d31..0000000 --- a/ansible/ubuntu-12.04-erlang-default.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1204 - - erlang-default-debian http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-14.04-base.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-14.04-base.yml b/ansible/ubuntu-14.04-base.yml deleted file mode 100644 index c176659..0000000 --- a/ansible/ubuntu-14.04-base.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1404 - - { role: nodesource.node, nodejs_version: '6.x' } - - dependencies-debian - - lintian-ubuntu - - common - - spidermonkey http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-14.04-erlang-18.3.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-14.04-erlang-18.3.yml b/ansible/ubuntu-14.04-erlang-18.3.yml deleted file mode 100644 index 56627a1..0000000 --- a/ansible/ubuntu-14.04-erlang-18.3.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - vars: - erlang_solutions_pkg_ver: "1:18.3" - remote_user: root - roles: - - ubuntu-1404 - - erlang-esl-debian-omnibus http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-14.04-erlang-default.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-14.04-erlang-default.yml b/ansible/ubuntu-14.04-erlang-default.yml deleted file mode 100644 index 087b097..0000000 --- a/ansible/ubuntu-14.04-erlang-default.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1404 - - erlang-default-debian http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-16.04-base.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-16.04-base.yml b/ansible/ubuntu-16.04-base.yml deleted file mode 100644 index 1e010a2..0000000 --- a/ansible/ubuntu-16.04-base.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1604 - - { role: nodesource.node, nodejs_version: '6.x' } - - dependencies-debian - - lintian-ubuntu - - common - - spidermonkey http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-16.04-erlang-18.3.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-16.04-erlang-18.3.yml b/ansible/ubuntu-16.04-erlang-18.3.yml deleted file mode 100644 index 51331e0..0000000 --- a/ansible/ubuntu-16.04-erlang-18.3.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - vars: - erlang_solutions_pkg_ver: "1:18.3-1" - remote_user: root - roles: - - ubuntu-1604 - - erlang-esl-debian-pkgs http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/ansible/ubuntu-16.04-erlang-default.yml ---------------------------------------------------------------------- diff --git a/ansible/ubuntu-16.04-erlang-default.yml b/ansible/ubuntu-16.04-erlang-default.yml deleted file mode 100644 index 092c5a8..0000000 --- a/ansible/ubuntu-16.04-erlang-default.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -- hosts: couchdb-ci-worker - remote_user: root - roles: - - ubuntu-1604 - - erlang-default-debian http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/.gitignore ---------------------------------------------------------------------- diff --git a/baseboxes/.gitignore b/baseboxes/.gitignore deleted file mode 100644 index 64dd29c..0000000 --- a/baseboxes/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -iso/ -couchdb-ci-ubuntu-14.04.box http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/apt.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/apt.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/apt.sh deleted file mode 100644 index 478cd73..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/apt.sh +++ /dev/null @@ -1,24 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -apt-get -y update -apt-get -y upgrade -apt-get -y install linux-headers-$(uname -r) build-essential -apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev -apt-get -y install vim -apt-get -y install dkms -apt-get -y install nfs-common http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/build_time.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/build_time.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/build_time.sh deleted file mode 100644 index c6f282b..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/build_time.sh +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -date > /etc/vagrant_box_build_time http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/cleanup.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/cleanup.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/cleanup.sh deleted file mode 100644 index 8ec91c2..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/cleanup.sh +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -apt-get -y autoremove - -dd if=/dev/zero of=/EMPTY bs=1M -rm -f /EMPTY - -echo "cleaning up dhcp leases" -rm /var/lib/dhcp/* - -echo "cleaning up udev rules" -rm -f /etc/udev/rules.d/70-persistent-net.rules -mkdir /etc/udev/rules.d/70-persistent-net.rules -rm -rf /dev/.udev/ -rm /lib/udev/rules.d/75-persistent-net-generator.rules - -echo "pre-up sleep 2" >> /etc/network/interfaces -exit http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/definition.rb ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/definition.rb b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/definition.rb deleted file mode 100644 index 32cd19a..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/definition.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -Veewee::Session.declare({ - :cpu_count => '1', - :memory_size => '512', - :disk_size => '65536', - :disk_format => 'VDI', - :hostiocache => 'off', - :os_type_id => 'Ubuntu_64', - :iso_file => "ubuntu-14.04.2-server-amd64.iso", - :iso_src => "http://releases.ubuntu.com/14.04/ubuntu-14.04.2-server-amd64.iso", - :iso_md5 => "83aabd8dcf1e8f469f3c72fff2375195", - :iso_download_timeout => "1000", - :boot_wait => "4", - :boot_cmd_sequence => [ - '<Esc><Esc><Enter>', - '/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ', - 'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ', - 'hostname=%NAME% ', - 'fb=false debconf/frontend=noninteractive ', - 'keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=us keyboard-configuration/variant=us console-setup/ask_detect=false ', - 'initrd=/install/initrd.gz -- <Enter>' -], - :kickstart_port => "7122", - :kickstart_timeout => "300", - :kickstart_file => "preseed.cfg", - :ssh_login_timeout => "10000", - :ssh_user => "vagrant", - :ssh_password => "vagrant", - :ssh_key => "", - :ssh_host_port => "7222", - :ssh_guest_port => "22", - :sudo_cmd => "echo '%p'|sudo -S sh '%f'", - :shutdown_cmd => "shutdown -P now", - :postinstall_files => [ - "build_time.sh", - "apt.sh", - "sudo.sh", - "vagrant.sh", - "ruby.sh", - "vbox.sh", - "cleanup.sh" - ], - :postinstall_timeout => "10000" -}) http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/preseed.cfg ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/preseed.cfg b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/preseed.cfg deleted file mode 100644 index a8f998e..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/preseed.cfg +++ /dev/null @@ -1,78 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -## Options to set on the command line -d-i debian-installer/locale string en_US.utf8 -d-i console-setup/ask_detect boolean false -d-i console-setup/layout string us - -d-i netcfg/get_hostname string unassigned-hostname -d-i netcfg/get_domain string unassigned-domain - -d-i time/zone string UTC -d-i clock-setup/utc-auto boolean true -d-i clock-setup/utc boolean true - -d-i kbd-chooser/method select American English - -d-i netcfg/wireless_wep string - -d-i base-installer/kernel/override-image string linux-server - -d-i debconf debconf/frontend select Noninteractive - -d-i pkgsel/install-language-support boolean false -tasksel tasksel/first multiselect standard, ubuntu-server - -d-i partman-auto/method string lvm - -d-i partman-lvm/confirm boolean true -d-i partman-lvm/device_remove_lvm boolean true -d-i partman-auto/choose_recipe select atomic - -d-i partman/confirm_write_new_label boolean true -d-i partman/confirm_nooverwrite boolean true -d-i partman/choose_partition select finish -d-i partman/confirm boolean true - -# Write the changes to disks and configure LVM? -d-i partman-lvm/confirm boolean true -d-i partman-lvm/confirm_nooverwrite boolean true -d-i partman-auto-lvm/guided_size string max - -# Default user -d-i passwd/user-fullname string vagrant -d-i passwd/username string vagrant -d-i passwd/user-password password vagrant -d-i passwd/user-password-again password vagrant -d-i user-setup/encrypt-home boolean false -d-i user-setup/allow-password-weak boolean true - -# Minimum packages (see postinstall.sh) -d-i pkgsel/include string openssh-server ntp - -# Upgrade packages after debootstrap? (none, safe-upgrade, full-upgrade) -# (note: set to none for speed) -d-i pkgsel/upgrade select none - -d-i grub-installer/only_debian boolean true -d-i grub-installer/with_other_os boolean true -d-i finish-install/reboot_in_progress note - -d-i pkgsel/update-policy select none - -choose-mirror-bin mirror/http/proxy string http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/readme.markdown ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/readme.markdown b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/readme.markdown deleted file mode 100644 index 09ef8aa..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/readme.markdown +++ /dev/null @@ -1,14 +0,0 @@ -# Base Box couchdb-ci-ubuntu-14.04 - -This box has been created with - -```bash -veewee vbox define couchdb-ci-ubuntu-14.04 ubuntu-14.04-server-amd64 -``` - -That is, it has been created from the template ubuntu-14.04-server-amd64 - -## Modifications - -After instantiating the template, chef.sh, puppet.sh and parallels.sh have been -removed (we don't need those). http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/ruby.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/ruby.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/ruby.sh deleted file mode 100644 index b199cd9..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/ruby.sh +++ /dev/null @@ -1,42 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -apt-get -y install libyaml-0-2 -RUBY_VERSION=2.0.0-p247 - -cd /tmp - -wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-$RUBY_VERSION.tar.gz -tar xvzf ruby-$RUBY_VERSION.tar.gz -cd ruby-$RUBY_VERSION -./configure --prefix=/opt/ruby -make -make install -cd .. -rm -rf ruby-$RUBY_VERSION -rm ruby-$RUBY_VERSION.tar.gz - -RUBYGEMS_VERSION=2.1.10 -wget http://production.cf.rubygems.org/rubygems/rubygems-$RUBYGEMS_VERSION.tgz -tar xzf rubygems-$RUBYGEMS_VERSION.tgz -cd rubygems-$RUBYGEMS_VERSION -/opt/ruby/bin/ruby setup.rb -cd .. -rm -rf rubygems-$RUBYGEMS_VERSION -rm rubygems-$RUBYGEMS_VERSION.tgz - -echo 'PATH=$PATH:/opt/ruby/bin/' > /etc/profile.d/vagrantruby.sh http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/sudo.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/sudo.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/sudo.sh deleted file mode 100644 index d53bc88..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/sudo.sh +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -groupadd -r admin -usermod -a -G admin vagrant -cp /etc/sudoers /etc/sudoers.orig -sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers -sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vagrant.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vagrant.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vagrant.sh deleted file mode 100644 index b73298a..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vagrant.sh +++ /dev/null @@ -1,31 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -mkdir /home/vagrant/.ssh -chmod 700 /home/vagrant/.ssh -cd /home/vagrant/.ssh -wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys -chmod 600 /home/vagrant/.ssh/authorized_keys -chown -R vagrant /home/vagrant/.ssh - -# also add key for root user, so Ansible can do its thing via root instead of user vagrant -mkdir /root/.ssh -chmod 700 /root/.ssh -cd /root/.ssh -wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys -chmod 600 /root/.ssh/authorized_keys -chown -R root /root/.ssh http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vbox.sh ---------------------------------------------------------------------- diff --git a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vbox.sh b/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vbox.sh deleted file mode 100644 index bb70b56..0000000 --- a/baseboxes/definitions/couchdb-ci-ubuntu-14.04/vbox.sh +++ /dev/null @@ -1,39 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# Without libdbus virtualbox would not start automatically after compile -apt-get -y install --no-install-recommends libdbus-1-3 - -# Remove existing VirtualBox guest additions -/etc/init.d/virtualbox-ose-guest-utils stop -rmmod vboxguest -aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils -aptitude -y install dkms - -# Install the VirtualBox guest additions -VBOX_VERSION=$(cat /home/vagrant/.vbox_version) -VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso -mount -o loop $VBOX_ISO /mnt -yes|sh /mnt/VBoxLinuxAdditions.run -umount /mnt - -# Temporary fix for VirtualBox Additions version 4.3.10 -# issue #12879, see https://www.virtualbox.org/ticket/12879 -[ -e /usr/lib/VBoxGuestAdditions ] || ln -s /opt/VBoxGuestAdditions-$VBOX_VERSION/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions - -# Cleanup -rm $VBOX_ISO http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/baseboxes/readme.markdown ---------------------------------------------------------------------- diff --git a/baseboxes/readme.markdown b/baseboxes/readme.markdown deleted file mode 100644 index b8858a9..0000000 --- a/baseboxes/readme.markdown +++ /dev/null @@ -1,44 +0,0 @@ -Veewee Configurations for CouchDB CI Base Boxes -=============================================== - -To test CouchDB CI setups locally as virtual boxes we use we use Vagrant. Vagrant setups always need a base box. To make the creation and maintenance of these base boxes easy and reproducible we use [veewee](https://github.com/jedi4ever/veewee). - -Each base box has its own sub folder in `definitions` and is based on a different template, usually a minimal install of the OS in question. - -For example, the veewee configuration for the base box for Ubuntu 14.04 LTS is based on the template 'ubuntu-14.04-server-amd64' (created via -`veewee vbox define couchdb-ci-ubuntu-14.04 ubuntu-14.04-server-amd64`). - -See the readme in each sub folder in `definitions` for more info on the base boxes. - -Steps to Re-Build a Base Box From Scratch -======================================== - -## 0. Install Veewee - -* <https://github.com/jedi4ever/veewee/blob/master/doc/requirements.md> -* <https://github.com/jedi4ever/veewee/blob/master/doc/installation.md> - -## 1. Build and Export VirtualBox Images with Veewee - -Execute the following commands in the `baseboxes` directory -```bash -veewee vbox build couchdb-ci-ubuntu-14.04 -``` - -If there is already a box named `couchdb-ci-ubuntu-14.04`, you can use the additional parameter `--force` to overwrite the existing box or destroy the old box with `veewee vbox destroy couchdb-ci-ubuntu-14.04`. - -When the box has been build, you could log in to the box with `ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 7222 -l vagrant 127.0.0.1` but actually there is no need to that. - -## 2. Export the Box - -```bash -veewee vbox export couchdb-ci-ubuntu-14.04 -``` - -Now you have a `couchdb-ci-ubuntu-14.04.box` file in your directory. This file can be imported in Vagrant. - -## 3. Import the Box in Vagrant - -```bash -vagrant box add couchdb-ci-ubuntu-14.04 ./couchdb-ci-ubuntu-14.04.box -``` http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/apt-dependencies.sh ---------------------------------------------------------------------- diff --git a/bin/apt-dependencies.sh b/bin/apt-dependencies.sh new file mode 100755 index 0000000..9d25774 --- /dev/null +++ b/bin/apt-dependencies.sh @@ -0,0 +1,136 @@ +#!/usr/bin/env bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This shell script installs all OS package dependencies for Apache +# CouchDB 2.x for deb-based systems. +# +# While these scripts are primarily written to support building CI +# Docker images, they can be used on any workstation to install a +# suitable build environment. + +# stop on error +set -e + +# TODO: support Mint, Devuan, etc. + +# Check if running as root +if [[ ${EUID} -ne 0 ]]; then + echo "Sorry, this script must be run as root." + echo "Try: sudo $0 $*" + exit 1 +fi + +# install lsb-release +apt-get update && apt-get install -y lsb-release + +SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +VERSION=$(/usr/bin/lsb_release -cs) +ARCH=$(arch) +debians='(wheezy|jessie|stretch|buster)' +ubuntus='(precise|trusty|xenial|artful|bionic)' +echo "Detected Ubuntu/Debian version: ${VERSION} arch: ${ARCH}" + +# bionic Docker image seems to be missing /etc/timezone... +if [[ ! -f /etc/timezone ]]; then + rm -f /etc/localtime + ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime + echo "Etc/UTC" > /etc/timezone + chmod 0644 /etc/timezone + apt-get install -y tzdata + export TZ=Etc/UTC +fi + +# Upgrade all packages +apt-get -y dist-upgrade + +# install build-time dependencies +apt-get install -y apt-transport-https curl git pkg-config python \ + libpython-dev python-pip sudo wget zip \ + build-essential ca-certificates libcurl4-openssl-dev \ + libicu-dev libnspr4-dev + +# Node.js +pushd /tmp +wget https://deb.nodesource.com/setup_${NODEVERSION}.x +/bin/bash setup_${NODEVERSION}.x +apt-get install -y nodejs +rm setup_${NODEVERSION}.x +popd + +# documentation packages +apt-get install -y help2man python-sphinx + +# fix for broken sphinx on ubuntu 12.04 only +if [[ ${VERSION} == "precise" ]]; then + pip install docutils==0.13.1 sphinx==1.5.3 +fi + +# rest of python dependencies +pip install --upgrade sphinx_rtd_theme nose requests hypothesis + +# package-building stuff +apt-get install -y curl debhelper dh-exec devscripts dialog lintian \ + libwww-perl devscripts quilt equivs + +# install dh-systemd if available +if [[ ${VERSION} != "precise" ]]; then + apt-get install -y dh-systemd +fi + +# Stuff to make Debian and RPM repositories +apt-get install -y reprepro createrepo + +# relaxed lintian rules for CouchDB +mkdir -p /usr/share/lintian/profiles/couchdb +chmod 0755 /usr/share/lintian/profiles/couchdb +if [[ ${VERSION} =~ ${debians} ]]; then + cp ${SCRIPTPATH}/../files/debian.profile /usr/share/lintian/profiles/couchdb/main.profile +elif [[ ${VERSION} =~ ${ubuntus} ]]; then + cp ${SCRIPTPATH}/../files/ubuntu.profile /usr/share/lintian/profiles/couchdb/main.profile +else + echo "Unrecognized Debian-like release: ${VERSION}! Skipping lintian work." +fi +chmod 0644 /usr/share/lintian/profiles/couchdb/main.profile + +# convenience stuff for the CI workflow maintainer ;) +apt-get install -y vim-tiny screen + +# js packages, as long as we're not told to skip them +if [[ $1 != "nojs" ]]; then + # config the CouchDB repo & install the JS packages + echo "deb https://apache.bintray.com/couchdb-deb ${VERSION} main" | \ + sudo tee /etc/apt/sources.list.d/couchdb.list + for server in $(shuf -e pgpkeys.mit.edu \ + ha.pool.sks-keyservers.net \ + hkp://p80.pool.sks-keyservers.net:80 \ + pgp.mit.edu) ; do \ + gpg --keyserver $server --recv-key 379CE192D401AB61 && break || : ; + done + gpg -a --export 379CE192D401AB61 | apt-key add - + apt-get update && apt-get install -y couch-libmozjs185-dev +else + # install js build-time dependencies only + # we can't add the CouchDB repo here because the plat may not exist yet + apt-get install -y libffi-dev pkg-kde-tools autotools-dev +fi + +# Erlang is installed by apt-erlang.sh + +# clean up +apt-get clean http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/apt-erlang.sh ---------------------------------------------------------------------- diff --git a/bin/apt-erlang.sh b/bin/apt-erlang.sh new file mode 100755 index 0000000..c4c4437 --- /dev/null +++ b/bin/apt-erlang.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This shell script installs Erlang dependencies for Apache +# CouchDB 2.x for deb-based systems. +# +# While these scripts are primarily written to support building CI +# Docker images, they can be used on any workstation to install a +# suitable build environment. + +# stop on error +set -e + +# TODO: support Mint, Devuan, etc. + +# Check if running as root +if [[ ${EUID} -ne 0 ]]; then + echo "Sorry, this script must be run as root." + echo "Try: sudo $0 $*" + exit 1 +fi + +# you DID run apt-dependencies.sh first, didn't you? +VERSION=$(/usr/bin/lsb_release -cs) + +apt-get update + +if [[ ${ERLANGVERSION} == "default" ]]; then + apt-get update && apt-get install -y erlang-nox erlang-dev erlang erlang-eunit erlang-dialyzer +else + wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb + dpkg -i erlang-solutions_1.0_all.deb + rm erlang-solutions_1.0_all.deb + # bionic is broken... + sed -i 's/debian contrib/debian ${VERSION} contrib/' /etc/apt/sources.list.d/erlang-solutions.list + if [[ ${ERLANGVERSION} == "19.3.6" && ${VERSION} == "bionic" ]]; then + ERLANGVERSION=19.3.6.8 + fi + apt-get update && apt-get install -y esl-erlang=1:${ERLANGVERSION} +fi + +# clean up +apt-get clean http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/build-js.sh ---------------------------------------------------------------------- diff --git a/bin/build-js.sh b/bin/build-js.sh new file mode 100755 index 0000000..5ec0c9c --- /dev/null +++ b/bin/build-js.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This shell script builds a CouchDB-compatible SpiderMonkey 1.8.5 +# and assumes the build environment is already set up correctly. +# It expects to be run as root. + +# stop on error +set -e + +# This works if we're not called through a symlink +# otherwise, see https://stackoverflow.com/questions/59895/ +SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ARCH=$(arch) + +# Check if running as root +if [[ ${EUID} -ne 0 ]]; then + echo "Sorry, this script must be run as root." + echo "Try: sudo $0 $*" + exit 1 +fi + +. ${SCRIPTPATH}/detect-os.sh + +cd /root +git clone https://github.com/apache/couchdb-pkg +cd /root/couchdb-pkg + +redhats='(rhel|centos|fedora)' +debians='(debian|ubuntu)' +if [[ ${ID} =~ ${redhats} ]]; then + make couch-js-rpms + cp /root/rpmbuild/RPMS/${ARCH}/couch-js-* /root/output +elif [[ ${ID} =~ ${debians} ]]; then + make couch-js-debs PLATFORM=${VERSION_CODENAME} + # /root/output is mounted somewhere useful. + cp /root/couchdb-pkg/js/couch-lib* /root/output +else + echo "Sorry, we don't support this Linux (${ID}) yet." + exit 1 +fi + http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/build-test-couchdb.sh ---------------------------------------------------------------------- diff --git a/bin/build-test-couchdb.sh b/bin/build-test-couchdb.sh new file mode 100755 index 0000000..0150114 --- /dev/null +++ b/bin/build-test-couchdb.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This shell script builds and tests CouchDB on the current host. +# It assumes the build environment is already set up correctly. +# It needs no special privileges. + +# stop on error +set -e + +cd /usr/src +git clone https://github.com/apache/couchdb +cd couchdb + +echo $(whoami) +echo $(pwd) + +./configure --with-curl +make check http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-base/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-base/create-container.sh b/bin/centos-6-base/create-container.sh deleted file mode 100755 index 8819ed6..0000000 --- a/bin/centos-6-base/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/centos-6-base -t couchdbdev/centos-6-base . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-base/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-base/enter-container.sh b/bin/centos-6-base/enter-container.sh deleted file mode 100755 index 31263f0..0000000 --- a/bin/centos-6-base/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/centos-6-base bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-base/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-base/publish-container.sh b/bin/centos-6-base/publish-container.sh deleted file mode 100755 index 5268ee3..0000000 --- a/bin/centos-6-base/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/centos-6-base http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-erlang-18.3/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-erlang-18.3/create-container.sh b/bin/centos-6-erlang-18.3/create-container.sh deleted file mode 100755 index f537030..0000000 --- a/bin/centos-6-erlang-18.3/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/centos-6-erlang-18.3 -t couchdbdev/centos-6-erlang-18.3 . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-erlang-18.3/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-erlang-18.3/enter-container.sh b/bin/centos-6-erlang-18.3/enter-container.sh deleted file mode 100755 index 69890f2..0000000 --- a/bin/centos-6-erlang-18.3/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/centos-6-erlang-18.3 bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-erlang-18.3/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-erlang-18.3/publish-container.sh b/bin/centos-6-erlang-18.3/publish-container.sh deleted file mode 100755 index 4bfedb6..0000000 --- a/bin/centos-6-erlang-18.3/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/centos-6-erlang-18.3 http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-6-erlang-18.3/run-build-in-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-6-erlang-18.3/run-build-in-container.sh b/bin/centos-6-erlang-18.3/run-build-in-container.sh deleted file mode 100755 index 33620fb..0000000 --- a/bin/centos-6-erlang-18.3/run-build-in-container.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -pushd $( dirname "$0" )/../.. -pwd -OS=centos-6 ERLANG=18.3 jenkins/build.sh -popd http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-base/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-base/create-container.sh b/bin/centos-7-base/create-container.sh deleted file mode 100755 index 9c5f068..0000000 --- a/bin/centos-7-base/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/centos-7-base -t couchdbdev/centos-7-base . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-base/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-base/enter-container.sh b/bin/centos-7-base/enter-container.sh deleted file mode 100755 index 253b54b..0000000 --- a/bin/centos-7-base/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/centos-7-base bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-base/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-base/publish-container.sh b/bin/centos-7-base/publish-container.sh deleted file mode 100755 index 874c3d8..0000000 --- a/bin/centos-7-base/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/centos-7-base http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-18.3/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-18.3/create-container.sh b/bin/centos-7-erlang-18.3/create-container.sh deleted file mode 100755 index 4933459..0000000 --- a/bin/centos-7-erlang-18.3/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/centos-7-erlang-18.3 -t couchdbdev/centos-7-erlang-18.3 . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-18.3/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-18.3/enter-container.sh b/bin/centos-7-erlang-18.3/enter-container.sh deleted file mode 100755 index c5ba583..0000000 --- a/bin/centos-7-erlang-18.3/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/centos-7-erlang-18.3 bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-18.3/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-18.3/publish-container.sh b/bin/centos-7-erlang-18.3/publish-container.sh deleted file mode 100755 index 675df18..0000000 --- a/bin/centos-7-erlang-18.3/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/centos-7-erlang-18.3 http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-18.3/run-build-in-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-18.3/run-build-in-container.sh b/bin/centos-7-erlang-18.3/run-build-in-container.sh deleted file mode 100755 index 3695ebc..0000000 --- a/bin/centos-7-erlang-18.3/run-build-in-container.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -pushd $( dirname "$0" )/../.. -pwd -OS=centos-7 ERLANG=18.3 jenkins/build.sh -popd http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-default/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-default/create-container.sh b/bin/centos-7-erlang-default/create-container.sh deleted file mode 100755 index 8b8c118..0000000 --- a/bin/centos-7-erlang-default/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/centos-7-erlang-default -t couchdbdev/centos-7-erlang-default . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-default/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-default/enter-container.sh b/bin/centos-7-erlang-default/enter-container.sh deleted file mode 100755 index 58342d1..0000000 --- a/bin/centos-7-erlang-default/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/centos-7-erlang-default bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-default/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-default/publish-container.sh b/bin/centos-7-erlang-default/publish-container.sh deleted file mode 100755 index 49f6592..0000000 --- a/bin/centos-7-erlang-default/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/centos-7-erlang-default http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/centos-7-erlang-default/run-build-in-container.sh ---------------------------------------------------------------------- diff --git a/bin/centos-7-erlang-default/run-build-in-container.sh b/bin/centos-7-erlang-default/run-build-in-container.sh deleted file mode 100755 index 6ac2d2a..0000000 --- a/bin/centos-7-erlang-default/run-build-in-container.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -pushd $( dirname "$0" )/../.. -pwd -OS=centos-7 ERLANG=default jenkins/build.sh -popd http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-base/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-base/create-container.sh b/bin/debian-8-base/create-container.sh deleted file mode 100755 index 6a7a0ce..0000000 --- a/bin/debian-8-base/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/debian-8-base -t couchdbdev/debian-8-base . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-base/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-base/enter-container.sh b/bin/debian-8-base/enter-container.sh deleted file mode 100755 index b5442f5..0000000 --- a/bin/debian-8-base/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/debian-8-base bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-base/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-base/publish-container.sh b/bin/debian-8-base/publish-container.sh deleted file mode 100755 index b3188de..0000000 --- a/bin/debian-8-base/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/debian-8-base http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-18.3/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-18.3/create-container.sh b/bin/debian-8-erlang-18.3/create-container.sh deleted file mode 100755 index 95511f1..0000000 --- a/bin/debian-8-erlang-18.3/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/debian-8-erlang-18.3 -t couchdbdev/debian-8-erlang-18.3 . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-18.3/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-18.3/enter-container.sh b/bin/debian-8-erlang-18.3/enter-container.sh deleted file mode 100755 index c259021..0000000 --- a/bin/debian-8-erlang-18.3/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/debian-8-erlang-18.3 bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-18.3/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-18.3/publish-container.sh b/bin/debian-8-erlang-18.3/publish-container.sh deleted file mode 100755 index ba9ddea..0000000 --- a/bin/debian-8-erlang-18.3/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/debian-8-erlang-18.3 http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-18.3/run-build-in-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-18.3/run-build-in-container.sh b/bin/debian-8-erlang-18.3/run-build-in-container.sh deleted file mode 100755 index a939525..0000000 --- a/bin/debian-8-erlang-18.3/run-build-in-container.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -pushd $( dirname "$0" )/../.. -pwd -OS=debian-8 ERLANG=18.3 jenkins/build.sh -popd http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-default/create-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-default/create-container.sh b/bin/debian-8-erlang-default/create-container.sh deleted file mode 100755 index ef8c268..0000000 --- a/bin/debian-8-erlang-default/create-container.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e - -# The Docker containers need the root directory of this repository as their -# build context (because they need the Ansible files). -pushd `dirname $0`/../.. > /dev/null - -docker build -f dockerfiles/debian-8-erlang-default -t couchdbdev/debian-8-erlang-default . - -popd > /dev/null http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-default/enter-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-default/enter-container.sh b/bin/debian-8-erlang-default/enter-container.sh deleted file mode 100755 index a974227..0000000 --- a/bin/debian-8-erlang-default/enter-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker run -it couchdbdev/debian-8-erlang-default bash http://git-wip-us.apache.org/repos/asf/couchdb-ci/blob/c468e27a/bin/debian-8-erlang-default/publish-container.sh ---------------------------------------------------------------------- diff --git a/bin/debian-8-erlang-default/publish-container.sh b/bin/debian-8-erlang-default/publish-container.sh deleted file mode 100755 index 7e685b9..0000000 --- a/bin/debian-8-erlang-default/publish-container.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -docker push couchdbdev/debian-8-erlang-default
