Skip to content

Commit

Permalink
Zowe Suite v1.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Jul 14, 2021
2 parents 3068db9 + 6a83a47 commit 94e1e6f
Show file tree
Hide file tree
Showing 11 changed files with 696 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the staging branch
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2


- name: Login Jfrog
uses: docker/login-action@v1
with:
registry: zowe-docker-snapshot.jfrog.io
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}



- name: build and push image
run: |
cd container
chmod +x *.sh
./pull-zowe-install-artifacts.sh
./download-zlux.sh
cd files
IMAGE_VERSION=$(grep -Po '"version": *\K"[^"]*"' manifest.json | head -n1)
IMAGE_VERSION=`echo $IMAGE_VERSION | sed 's/.\(.*\)/\1/' | sed 's/\(.*\)./\1/'`
cd ..
./build.sh
docker tag zowe-docker-snapshot.jfrog.io/ompzowe/app-server:testing zowe-docker-snapshot.jfrog.io/ompzowe/app-server:$IMAGE_VERSION
docker push zowe-docker-snapshot.jfrog.io/ompzowe/app-server:$IMAGE_VERSION
4 changes: 4 additions & 0 deletions container/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.tar
files/zlux
# manifest.json
logs
54 changes: 54 additions & 0 deletions container/Dockerfile.zlux
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#########################################################################################
# #
# This program and the accompanying materials are made available under the terms of the #
# Eclipse Public License v2.0 which accompanies this distribution, and is available at #
# https://www.eclipse.org/legal/epl-v20.html #
# #
# SPDX-License-Identifier: EPL-2.0 #
# #
# Copyright IBM Corporation 2021 #
# #
#########################################################################################
FROM node:12

#ENV VARS
ENV INSTALL_DIR=/home/zowe
ENV ROOT_DIR=${INSTALL_DIR}/install
ENV ZOWE_ROOT_DIR=${ROOT_DIR}
ENV INSTANCE_DIR=${INSTALL_DIR}/instance
ENV WORKSPACE_DIR=${INSTANCE_DIR}/workspace

# COPY zlux-core to /home/zowe/install/components/app-server/share
ADD files/zlux-core.tar ${ROOT_DIR}/components/app-server/share/
# copy all packages & scripts to install
ADD files ${INSTALL_DIR}/files

RUN cd ${ROOT_DIR}/components/app-server/share/zlux-app-server/bin && \
chmod +x *.sh && \
./install-container.sh

EXPOSE 8544/tcp

ENV ZOWE_EXPLORER_HOST='localhost'
ENV ZOWE_IP_ADDRESS=0.0.0.0

ENV ZOWE_ZOSMF_PORT='443'
ENV ZWED_agent_https_port='8542'

ENV ZWED_node_allowInvalidTLSProxy=true
ENV ZOWE_ZLUX_TELNET_PORT=23
ENV ZOWE_ZLUX_SECURITY_TYPE=telnet
ENV ZWE_EXTERNAL_HOST='localhost'
ENV ZWE_REFERRER_HOSTS='localhost,gateway-service,zlux-app-server'

# authorization needs to point to zss endpoint
# ENV APIML_SECURITY_AUTHORIZATION_PROVIDER=endpoint
# ENV APIML_SECURITY_AUTHORIZATION_ENDPOINT_ENABLED=true

# ENV LAUNCH_COMPONENT_GROUPS=DESKTOP,GATEWAY

# COPY --chown=zowe:zowe --from=builder /home/zowe /home/zowe
# RUN chmod a+x /home/zowe/*.sh /home/zowe/.run_inner.sh

WORKDIR ${ROOT_DIR}/components/app-server/bin
CMD ["./start-container.sh"]
17 changes: 17 additions & 0 deletions container/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

#########################################################################################
# #
# This program and the accompanying materials are made available under the terms of the #
# Eclipse Public License v2.0 which accompanies this distribution, and is available at #
# https://www.eclipse.org/legal/epl-v20.html #
# #
# SPDX-License-Identifier: EPL-2.0 #
# #
# Copyright IBM Corporation 2021 #
# #
#########################################################################################

mkdir -p logs
docker pull node:12
docker build --pull -f Dockerfile.zlux --no-cache --progress=plain -t zowe-docker-snapshot.jfrog.io/ompzowe/app-server:testing . 2>&1 | tee logs/docker-build.log
32 changes: 32 additions & 0 deletions container/download-zlux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

#########################################################################################
# #
# This program and the accompanying materials are made available under the terms of the #
# Eclipse Public License v2.0 which accompanies this distribution, and is available at #
# https://www.eclipse.org/legal/epl-v20.html #
# #
# SPDX-License-Identifier: EPL-2.0 #
# #
# Copyright IBM Corporation 2021 #
# #
#########################################################################################

set -e

ZOWE_REPOSITORY=https://zowe.jfrog.io/artifactory

output=$(node getPackagePaths.js)
read -r PACKAGES URLS <<<$(echo $output | sed "s/;/ /g")
PACKAGES=($(echo $PACKAGES | sed "s/,/ /g"))
URLS=($(echo $URLS | sed "s/,/ /g"))

for i in "${!URLS[@]}";
do
# echo package zlux/"${PACKAGES[i]}".tar
echo url "${URLS[i]}"
curl -s "${URLS[i]}" -o files/zlux/"${PACKAGES[i]}".tar && echo "${PACKAGES[i]} done" &
done
wait

mv files/zlux/zlux-core.tar files/zlux-core.tar
Loading

0 comments on commit 94e1e6f

Please sign in to comment.