├── EXTRA_TAGS ├── LICENSE ├── README.md ├── build-and-tag.sh ├── hhvm-latest-proxygen ├── Dockerfile └── server.ini └── hhvm-latest └── Dockerfile /EXTRA_TAGS: -------------------------------------------------------------------------------- 1 | nightly 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2015, Fred Emmott. 4 | Copyright (c) 2015-present, Facebook, Inc. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This repository contains the sources for the following docker hub images: 2 | 3 | - [hhvm/hhvm](https://registry.hub.docker.com/u/hhvm/hhvm/) 4 | - [hhvm/hhvm-proxygen](https://registry.hub.docker.com/u/hhvm/hhvm-proxygen/) 5 | 6 | Building A New Version 7 | ====================== 8 | 9 | ``` 10 | ./build-and-tag.sh VERSION 11 | ``` 12 | -------------------------------------------------------------------------------- /build-and-tag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) 2017-present, Facebook, Inc. 4 | # All rights reserved. 5 | # 6 | # This source code is licensed under the MIT license found in the 7 | # LICENSE file in the root directory of this source tree. 8 | 9 | set -ex 10 | 11 | VERSION="${1:-"$(date +%Y.%m.%d)"}" 12 | cd "$(dirname "$0")" 13 | 14 | if [ $(uname -s) == "Darwin" ]; then 15 | GREP=egrep 16 | else 17 | GREP="grep -P" 18 | fi 19 | 20 | if echo "$VERSION" | $GREP -q '^\d{4}\.\d{2}\.\d{2}$'; then 21 | HHVM_PACKAGE="hhvm-nightly=${VERSION}-*" 22 | HHVM_REPO_DISTRO=focal 23 | else 24 | HHVM_PACKAGE="hhvm=${VERSION}-*" 25 | MAJ_MIN=$(echo "$VERSION" | cut -f1,2 -d.) 26 | if [ "${MAJ_MIN}" == "3.30" ]; then 27 | # old repo naming scheme 28 | HHVM_REPO_DISTRO="focal-lts-${MAJ_MIN}" 29 | else 30 | HHVM_REPO_DISTRO="focal-${MAJ_MIN}" 31 | fi 32 | git checkout "origin/HHVM-$MAJ_MIN" 2>/dev/null 33 | fi 34 | 35 | docker build \ 36 | --build-arg "HHVM_PACKAGE=$HHVM_PACKAGE" \ 37 | --build-arg "HHVM_REPO_DISTRO=$HHVM_REPO_DISTRO" \ 38 | -t "hhvm/hhvm:$VERSION" \ 39 | hhvm-latest/ 40 | 41 | docker build \ 42 | --build-arg "HHVM_BASE_IMAGE=hhvm/hhvm:$VERSION" \ 43 | -t "hhvm/hhvm-proxygen:$VERSION" \ 44 | hhvm-latest-proxygen/ 45 | 46 | docker push hhvm/hhvm:$VERSION 47 | docker push hhvm/hhvm-proxygen:$VERSION 48 | 49 | for TAG in $(