#!/bin/sh
# Copyright (c) 2016 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html

# Define space separated list of aliases for the docker image
IMAGE_ALIASES="eclipse/che-cli"

base_dir=$(cd "$(dirname "$0")"; pwd)
. "${base_dir}"/../build.include

init --name:cli "$@"

if [[ ! -f "${base_dir}/version/$TAG/images" ]]; then
	mkdir -p ${base_dir}/version/$TAG/
fi

cat ${base_dir}/images.template | sed s/\$\{BUILD_ORGANIZATION\}/${ORGANIZATION}/ | sed s/\$\{BUILD_PREFIX\}/${PREFIX}/ | sed s/\$\{BUILD_TAG\}/${TAG}/ > ${base_dir}/version/$TAG/images

build

if ! skip_tests; then
  sh "${base_dir}"/test.sh "$@"
fi

#!/bin/sh
# Copyright (c) 2016 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html

base_dir=$(cd "$(dirname "$0")"; pwd)
. "${base_dir}"/../build.include

init --name:cli "$@"

# Define space separated list of aliases for the docker image
IMAGE_ALIASES="${ORGANIZATION}/${PREFIX}"

if [[ ! -f "${base_dir}/version/$TAG/images" ]]; then
	mkdir -p ${base_dir}/version/$TAG/
fi

cat ${base_dir}/images.template | sed s/\$\{BUILD_ORGANIZATION\}/${ORGANIZATION}/ | sed s/\$\{BUILD_PREFIX\}/${PREFIX}/ | sed s/\$\{BUILD_TAG\}/${TAG}/ > ${base_dir}/version/$TAG/images

build

if ! skip_tests; then
  sh "${base_dir}"/test.sh "$@"
fi

Fix the aliases to use for the che cli image (for now it was the same name than current image) And also use the org and prefix
Fix the aliases to use for the che cli image (for now it was the same name than current image)
And also use the org and prefix

Change-Id: I9f32c8c87cde8bc68a6204ba8c307aed15476bfe
Signed-off-by: Florent BENOIT <aed23c9e57d07943853fa5abcd82c7d7f632be43@codenvy.com>
