diff --git a/Gravana_Dashboard.png b/Gravana_Dashboard.png new file mode 100644 index 000000000..4ba9c4a66 Binary files /dev/null and b/Gravana_Dashboard.png differ diff --git a/kubernetes/backend/karsajobs-deployment.yml b/kubernetes/backend/karsajobs-deployment.yml new file mode 100644 index 000000000..8ad1c4d61 --- /dev/null +++ b/kubernetes/backend/karsajobs-deployment.yml @@ -0,0 +1,46 @@ +# Menggunakan apiVersion v1 +apiVersion: apps/v1 +# Specify type of Kubernetes resource +kind: Deployment +metadata: + # Setting deployment name di metadata dengan karsajobs value + name: karsajobs + labels: + # Setting label dengan app karsajobs + app: karsajobs +spec: + replicas: 1 + # Setting selector dari metadata untuk deployment + selector: + matchLabels: + app: karsajobs + template: + # Setting selector dari metadata untuk pod + metadata: + labels: + app: karsajobs + spec: + containers: + # Setting container name + - name: karsajobs + # Setting image + image: ghcr.io/skill-tzy/karsajobs:latest + # Setting environment variable + env: + - name: APP_PORT + value: "8080" + # Setting MONGO_USER dan MONGO_PASS dari secret + - name: MONGO_USER + valueFrom: + secretKeyRef: + name: mongo-secret + key: MONGO_ROOT_USERNAME + - name: MONGO_PASS + valueFrom: + secretKeyRef: + name: mongo-secret + key: MONGO_ROOT_PASSWORD + - name: MONGO_HOST + value: mongo-service + ports: + - containerPort: 8080 diff --git a/kubernetes/backend/karsajobs-service.yml b/kubernetes/backend/karsajobs-service.yml new file mode 100644 index 000000000..651d16d21 --- /dev/null +++ b/kubernetes/backend/karsajobs-service.yml @@ -0,0 +1,19 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +kind: Service +metadata: + # Setting service name di metadata dengan karsajobs-service value + name: karsajobs-service + labels: + # Setting label dengan app karsajobs + app: karsajobs +spec: + # Setting service type untuk NodePort + type: NodePort + # Setting selector dari metadata untuk service + selector: + app: karsajobs + ports: + # - protocol: TCP + - port: 8080 + targetPort: 8080 diff --git a/kubernetes/frontend/karsajobs-ui-deployment.yml b/kubernetes/frontend/karsajobs-ui-deployment.yml new file mode 100644 index 000000000..654de401d --- /dev/null +++ b/kubernetes/frontend/karsajobs-ui-deployment.yml @@ -0,0 +1,32 @@ +# Menggunakan apiVersion v1 +apiVersion: apps/v1 +# Specify type of Kubernetes resource +kind: Deployment +metadata: + # Setting deployment name di metadata dengan karsajobs-ui value + name: karsajobs-ui + # Setting label dengan app karsajobs-ui + labels: + app: karsajobs-ui +spec: + replicas: 1 + # Setting selector dari metadata untuk deployment + selector: + matchLabels: + app: karsajobs-ui + template: + # Setting selector dari metadata untuk pod + metadata: + labels: + app: karsajobs-ui + spec: + containers: + # Setting container name + - name: karsajobs-ui + image: ghcr.io/skill-tzy/karsajobs-ui:latest + # Setting environment variable + env: + - name: VUE_APP_BACKEND + value: http://192.168.49.2:32339 + ports: + - containerPort: 8000 diff --git a/kubernetes/frontend/karsajobs-ui-service.yml b/kubernetes/frontend/karsajobs-ui-service.yml new file mode 100644 index 000000000..23bda91be --- /dev/null +++ b/kubernetes/frontend/karsajobs-ui-service.yml @@ -0,0 +1,19 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +kind: Service +metadata: + # Setting service name di metadata dengan karsajobs-ui-service value + name: karsajobs-ui-service + labels: + # Setting label dengan app karsajobs-ui + app: karsajobs-ui +spec: + # Setting service type untuk NodePort + type: NodePort + # Setting selector dari metadata untuk service + selector: + app: karsajobs-ui + ports: + # - protocol: TCP + - port: 8000 + targetPort: 8000 diff --git a/kubernetes/get_helm.sh b/kubernetes/get_helm.sh new file mode 100644 index 000000000..31678a177 --- /dev/null +++ b/kubernetes/get_helm.sh @@ -0,0 +1,341 @@ +#!/usr/bin/env bash + +# Copyright The Helm Authors. +# +# Licensed 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. + +# The install script is based off of the MIT-licensed script from glide, +# the package manager for Go: https://github.com/Masterminds/glide.sh/blob/master/get + +: ${BINARY_NAME:="helm"} +: ${USE_SUDO:="true"} +: ${DEBUG:="false"} +: ${VERIFY_CHECKSUM:="true"} +: ${VERIFY_SIGNATURES:="false"} +: ${HELM_INSTALL_DIR:="/usr/local/bin"} +: ${GPG_PUBRING:="pubring.kbx"} + +HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)" +HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)" +HAS_OPENSSL="$(type "openssl" &> /dev/null && echo true || echo false)" +HAS_GPG="$(type "gpg" &> /dev/null && echo true || echo false)" +HAS_GIT="$(type "git" &> /dev/null && echo true || echo false)" + +# initArch discovers the architecture for this system. +initArch() { + ARCH=$(uname -m) + case $ARCH in + armv5*) ARCH="armv5";; + armv6*) ARCH="armv6";; + armv7*) ARCH="arm";; + aarch64) ARCH="arm64";; + x86) ARCH="386";; + x86_64) ARCH="amd64";; + i686) ARCH="386";; + i386) ARCH="386";; + esac +} + +# initOS discovers the operating system for this system. +initOS() { + OS=$(echo `uname`|tr '[:upper:]' '[:lower:]') + + case "$OS" in + # Minimalist GNU for Windows + mingw*|cygwin*) OS='windows';; + esac +} + +# runs the given command as root (detects if we are root already) +runAsRoot() { + if [ $EUID -ne 0 -a "$USE_SUDO" = "true" ]; then + sudo "${@}" + else + "${@}" + fi +} + +# verifySupported checks that the os/arch combination is supported for +# binary builds, as well whether or not necessary tools are present. +verifySupported() { + local supported="darwin-amd64\ndarwin-arm64\nlinux-386\nlinux-amd64\nlinux-arm\nlinux-arm64\nlinux-ppc64le\nlinux-s390x\nlinux-riscv64\nwindows-amd64" + if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then + echo "No prebuilt binary for ${OS}-${ARCH}." + echo "To build from source, go to https://github.com/helm/helm" + exit 1 + fi + + if [ "${HAS_CURL}" != "true" ] && [ "${HAS_WGET}" != "true" ]; then + echo "Either curl or wget is required" + exit 1 + fi + + if [ "${VERIFY_CHECKSUM}" == "true" ] && [ "${HAS_OPENSSL}" != "true" ]; then + echo "In order to verify checksum, openssl must first be installed." + echo "Please install openssl or set VERIFY_CHECKSUM=false in your environment." + exit 1 + fi + + if [ "${VERIFY_SIGNATURES}" == "true" ]; then + if [ "${HAS_GPG}" != "true" ]; then + echo "In order to verify signatures, gpg must first be installed." + echo "Please install gpg or set VERIFY_SIGNATURES=false in your environment." + exit 1 + fi + if [ "${OS}" != "linux" ]; then + echo "Signature verification is currently only supported on Linux." + echo "Please set VERIFY_SIGNATURES=false or verify the signatures manually." + exit 1 + fi + fi + + if [ "${HAS_GIT}" != "true" ]; then + echo "[WARNING] Could not find git. It is required for plugin installation." + fi +} + +# checkDesiredVersion checks if the desired version is available. +checkDesiredVersion() { + if [ "x$DESIRED_VERSION" == "x" ]; then + # Get tag from release URL + local latest_release_url="https://get.helm.sh/helm-latest-version" + local latest_release_response="" + if [ "${HAS_CURL}" == "true" ]; then + latest_release_response=$( curl -L --silent --show-error --fail "$latest_release_url" 2>&1 || true ) + elif [ "${HAS_WGET}" == "true" ]; then + latest_release_response=$( wget "$latest_release_url" -q -O - 2>&1 || true ) + fi + TAG=$( echo "$latest_release_response" | grep '^v[0-9]' ) + if [ "x$TAG" == "x" ]; then + printf "Could not retrieve the latest release tag information from %s: %s\n" "${latest_release_url}" "${latest_release_response}" + exit 1 + fi + else + TAG=$DESIRED_VERSION + fi +} + +# checkHelmInstalledVersion checks which version of helm is installed and +# if it needs to be changed. +checkHelmInstalledVersion() { + if [[ -f "${HELM_INSTALL_DIR}/${BINARY_NAME}" ]]; then + local version=$("${HELM_INSTALL_DIR}/${BINARY_NAME}" version --template="{{ .Version }}") + if [[ "$version" == "$TAG" ]]; then + echo "Helm ${version} is already ${DESIRED_VERSION:-latest}" + return 0 + else + echo "Helm ${TAG} is available. Changing from version ${version}." + return 1 + fi + else + return 1 + fi +} + +# downloadFile downloads the latest binary package and also the checksum +# for that binary. +downloadFile() { + HELM_DIST="helm-$TAG-$OS-$ARCH.tar.gz" + DOWNLOAD_URL="https://get.helm.sh/$HELM_DIST" + CHECKSUM_URL="$DOWNLOAD_URL.sha256" + HELM_TMP_ROOT="$(mktemp -dt helm-installer-XXXXXX)" + HELM_TMP_FILE="$HELM_TMP_ROOT/$HELM_DIST" + HELM_SUM_FILE="$HELM_TMP_ROOT/$HELM_DIST.sha256" + echo "Downloading $DOWNLOAD_URL" + if [ "${HAS_CURL}" == "true" ]; then + curl -SsL "$CHECKSUM_URL" -o "$HELM_SUM_FILE" + curl -SsL "$DOWNLOAD_URL" -o "$HELM_TMP_FILE" + elif [ "${HAS_WGET}" == "true" ]; then + wget -q -O "$HELM_SUM_FILE" "$CHECKSUM_URL" + wget -q -O "$HELM_TMP_FILE" "$DOWNLOAD_URL" + fi +} + +# verifyFile verifies the SHA256 checksum of the binary package +# and the GPG signatures for both the package and checksum file +# (depending on settings in environment). +verifyFile() { + if [ "${VERIFY_CHECKSUM}" == "true" ]; then + verifyChecksum + fi + if [ "${VERIFY_SIGNATURES}" == "true" ]; then + verifySignatures + fi +} + +# installFile installs the Helm binary. +installFile() { + HELM_TMP="$HELM_TMP_ROOT/$BINARY_NAME" + mkdir -p "$HELM_TMP" + tar xf "$HELM_TMP_FILE" -C "$HELM_TMP" + HELM_TMP_BIN="$HELM_TMP/$OS-$ARCH/helm" + echo "Preparing to install $BINARY_NAME into ${HELM_INSTALL_DIR}" + runAsRoot cp "$HELM_TMP_BIN" "$HELM_INSTALL_DIR/$BINARY_NAME" + echo "$BINARY_NAME installed into $HELM_INSTALL_DIR/$BINARY_NAME" +} + +# verifyChecksum verifies the SHA256 checksum of the binary package. +verifyChecksum() { + printf "Verifying checksum... " + local sum=$(openssl sha1 -sha256 ${HELM_TMP_FILE} | awk '{print $2}') + local expected_sum=$(cat ${HELM_SUM_FILE}) + if [ "$sum" != "$expected_sum" ]; then + echo "SHA sum of ${HELM_TMP_FILE} does not match. Aborting." + exit 1 + fi + echo "Done." +} + +# verifySignatures obtains the latest KEYS file from GitHub main branch +# as well as the signature .asc files from the specific GitHub release, +# then verifies that the release artifacts were signed by a maintainer's key. +verifySignatures() { + printf "Verifying signatures... " + local keys_filename="KEYS" + local github_keys_url="https://raw.githubusercontent.com/helm/helm/main/${keys_filename}" + if [ "${HAS_CURL}" == "true" ]; then + curl -SsL "${github_keys_url}" -o "${HELM_TMP_ROOT}/${keys_filename}" + elif [ "${HAS_WGET}" == "true" ]; then + wget -q -O "${HELM_TMP_ROOT}/${keys_filename}" "${github_keys_url}" + fi + local gpg_keyring="${HELM_TMP_ROOT}/keyring.gpg" + local gpg_homedir="${HELM_TMP_ROOT}/gnupg" + mkdir -p -m 0700 "${gpg_homedir}" + local gpg_stderr_device="/dev/null" + if [ "${DEBUG}" == "true" ]; then + gpg_stderr_device="/dev/stderr" + fi + gpg --batch --quiet --homedir="${gpg_homedir}" --import "${HELM_TMP_ROOT}/${keys_filename}" 2> "${gpg_stderr_device}" + gpg --batch --no-default-keyring --keyring "${gpg_homedir}/${GPG_PUBRING}" --export > "${gpg_keyring}" + local github_release_url="https://github.com/helm/helm/releases/download/${TAG}" + if [ "${HAS_CURL}" == "true" ]; then + curl -SsL "${github_release_url}/helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256.asc" -o "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256.asc" + curl -SsL "${github_release_url}/helm-${TAG}-${OS}-${ARCH}.tar.gz.asc" -o "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.asc" + elif [ "${HAS_WGET}" == "true" ]; then + wget -q -O "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256.asc" "${github_release_url}/helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256.asc" + wget -q -O "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.asc" "${github_release_url}/helm-${TAG}-${OS}-${ARCH}.tar.gz.asc" + fi + local error_text="If you think this might be a potential security issue," + error_text="${error_text}\nplease see here: https://github.com/helm/community/blob/master/SECURITY.md" + local num_goodlines_sha=$(gpg --verify --keyring="${gpg_keyring}" --status-fd=1 "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256.asc" 2> "${gpg_stderr_device}" | grep -c -E '^\[GNUPG:\] (GOODSIG|VALIDSIG)') + if [[ ${num_goodlines_sha} -lt 2 ]]; then + echo "Unable to verify the signature of helm-${TAG}-${OS}-${ARCH}.tar.gz.sha256!" + echo -e "${error_text}" + exit 1 + fi + local num_goodlines_tar=$(gpg --verify --keyring="${gpg_keyring}" --status-fd=1 "${HELM_TMP_ROOT}/helm-${TAG}-${OS}-${ARCH}.tar.gz.asc" 2> "${gpg_stderr_device}" | grep -c -E '^\[GNUPG:\] (GOODSIG|VALIDSIG)') + if [[ ${num_goodlines_tar} -lt 2 ]]; then + echo "Unable to verify the signature of helm-${TAG}-${OS}-${ARCH}.tar.gz!" + echo -e "${error_text}" + exit 1 + fi + echo "Done." +} + +# fail_trap is executed if an error occurs. +fail_trap() { + result=$? + if [ "$result" != "0" ]; then + if [[ -n "$INPUT_ARGUMENTS" ]]; then + echo "Failed to install $BINARY_NAME with the arguments provided: $INPUT_ARGUMENTS" + help + else + echo "Failed to install $BINARY_NAME" + fi + echo -e "\tFor support, go to https://github.com/helm/helm." + fi + cleanup + exit $result +} + +# testVersion tests the installed client to make sure it is working. +testVersion() { + set +e + HELM="$(command -v $BINARY_NAME)" + if [ "$?" = "1" ]; then + echo "$BINARY_NAME not found. Is $HELM_INSTALL_DIR on your "'$PATH?' + exit 1 + fi + set -e +} + +# help provides possible cli installation arguments +help () { + echo "Accepted cli arguments are:" + echo -e "\t[--help|-h ] ->> prints this help" + echo -e "\t[--version|-v ] . When not defined it fetches the latest release from GitHub" + echo -e "\te.g. --version v3.0.0 or -v canary" + echo -e "\t[--no-sudo] ->> install without sudo" +} + +# cleanup temporary files to avoid https://github.com/helm/helm/issues/2977 +cleanup() { + if [[ -d "${HELM_TMP_ROOT:-}" ]]; then + rm -rf "$HELM_TMP_ROOT" + fi +} + +# Execution + +#Stop execution on any error +trap "fail_trap" EXIT +set -e + +# Set debug if desired +if [ "${DEBUG}" == "true" ]; then + set -x +fi + +# Parsing input arguments (if any) +export INPUT_ARGUMENTS="${@}" +set -u +while [[ $# -gt 0 ]]; do + case $1 in + '--version'|-v) + shift + if [[ $# -ne 0 ]]; then + export DESIRED_VERSION="${1}" + if [[ "$1" != "v"* ]]; then + echo "Expected version arg ('${DESIRED_VERSION}') to begin with 'v', fixing..." + export DESIRED_VERSION="v${1}" + fi + else + echo -e "Please provide the desired version. e.g. --version v3.0.0 or -v canary" + exit 0 + fi + ;; + '--no-sudo') + USE_SUDO="false" + ;; + '--help'|-h) + help + exit 0 + ;; + *) exit 1 + ;; + esac + shift +done +set +u + +initArch +initOS +verifySupported +checkDesiredVersion +if ! checkHelmInstalledVersion; then + downloadFile + verifyFile + installFile +fi +testVersion +cleanup diff --git a/kubernetes/metrics-server.yaml b/kubernetes/metrics-server.yaml new file mode 100644 index 000000000..e5fdd91e6 --- /dev/null +++ b/kubernetes/metrics-server.yaml @@ -0,0 +1,197 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + k8s-app: metrics-server + name: metrics-server + namespace: kube-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + k8s-app: metrics-server + rbac.authorization.k8s.io/aggregate-to-admin: "true" + rbac.authorization.k8s.io/aggregate-to-edit: "true" + rbac.authorization.k8s.io/aggregate-to-view: "true" + name: system:aggregated-metrics-reader +rules: +- apiGroups: + - metrics.k8s.io + resources: + - pods + - nodes + verbs: + - get + - list + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + labels: + k8s-app: metrics-server + name: system:metrics-server +rules: +- apiGroups: + - "" + resources: + - nodes/metrics + verbs: + - get +- apiGroups: + - "" + resources: + - pods + - nodes + verbs: + - get + - list + - watch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + labels: + k8s-app: metrics-server + name: metrics-server-auth-reader + namespace: kube-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: extension-apiserver-authentication-reader +subjects: +- kind: ServiceAccount + name: metrics-server + namespace: kube-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + k8s-app: metrics-server + name: metrics-server:system:auth-delegator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: system:auth-delegator +subjects: +- kind: ServiceAccount + name: metrics-server + namespace: kube-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + k8s-app: metrics-server + name: system:metrics-server +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: system:metrics-server +subjects: +- kind: ServiceAccount + name: metrics-server + namespace: kube-system +--- +apiVersion: v1 +kind: Service +metadata: + labels: + k8s-app: metrics-server + name: metrics-server + namespace: kube-system +spec: + ports: + - name: https + port: 443 + protocol: TCP + targetPort: https + selector: + k8s-app: metrics-server +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + k8s-app: metrics-server + name: metrics-server + namespace: kube-system +spec: + selector: + matchLabels: + k8s-app: metrics-server + strategy: + rollingUpdate: + maxUnavailable: 0 + template: + metadata: + labels: + k8s-app: metrics-server + spec: + containers: + - args: + - --cert-dir=/tmp + - --secure-port=4443 + - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname + - --kubelet-use-node-status-port + - --metric-resolution=15s + - --kubelet-insecure-tls + image: k8s.gcr.io/metrics-server/metrics-server:v0.6.1 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 3 + httpGet: + path: /livez + port: https + scheme: HTTPS + periodSeconds: 10 + name: metrics-server + ports: + - containerPort: 4443 + name: https + protocol: TCP + readinessProbe: + failureThreshold: 3 + httpGet: + path: /readyz + port: https + scheme: HTTPS + initialDelaySeconds: 20 + periodSeconds: 10 + resources: + requests: + cpu: 100m + memory: 200Mi + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000 + volumeMounts: + - mountPath: /tmp + name: tmp-dir + nodeSelector: + kubernetes.io/os: linux + priorityClassName: system-cluster-critical + serviceAccountName: metrics-server + volumes: + - emptyDir: {} + name: tmp-dir +--- +apiVersion: apiregistration.k8s.io/v1 +kind: APIService +metadata: + labels: + k8s-app: metrics-server + name: v1beta1.metrics.k8s.io +spec: + group: metrics.k8s.io + groupPriorityMinimum: 100 + insecureSkipTLSVerify: true + service: + name: metrics-server + namespace: kube-system + version: v1beta1 + versionPriority: 100 diff --git a/kubernetes/mongodb/mongo-configmap.yml b/kubernetes/mongodb/mongo-configmap.yml new file mode 100644 index 000000000..9dee90991 --- /dev/null +++ b/kubernetes/mongodb/mongo-configmap.yml @@ -0,0 +1,12 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +# Specify type of Kubernetes resource +kind: ConfigMap +metadata: + # Configuration map name di metadata dengan mongo-configmap value + name: mongo-configmap +data: + # Mongodb storage configuration setting dbPath ke /data/db + mongo.conf: | + storage: + dbPath: /data/db diff --git a/kubernetes/mongodb/mongo-pv-pvc.yml b/kubernetes/mongodb/mongo-pv-pvc.yml new file mode 100644 index 000000000..38f85f604 --- /dev/null +++ b/kubernetes/mongodb/mongo-pv-pvc.yml @@ -0,0 +1,36 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +# Specify type of Kubernetes resource +kind: PersistentVolume +metadata: + # Setting persistent volume name di metadata dengan mongo-pv value + name: mongo-pv + labels: + type: local +spec: + # Setting persistent volume size + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + storageClassName: manual + hostPath: + # Setting host path + path: "/data/db" + +--- +# Menggunakan apiVersion v1 +apiVersion: v1 +# Specify type of Kubernetes resource +kind: PersistentVolumeClaim +metadata: + # Setting persistent volume claim name di metadata dengan mongo-pvc value + name: mongo-pvc +spec: + # Set persistent volume claim size + storageClassName: manual + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 3Gi diff --git a/kubernetes/mongodb/mongo-secret.yml b/kubernetes/mongodb/mongo-secret.yml new file mode 100644 index 000000000..b50874be8 --- /dev/null +++ b/kubernetes/mongodb/mongo-secret.yml @@ -0,0 +1,13 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +# Specify type of Kubernetes resource +kind: Secret +metadata: + # Setting secret name di metadata dengan mongo-secret value + name: mongo-secret +# Setting secret type untuk Opaque +type: Opaque +# Setting secret data dengan MONGO_ROOT_USERNAME dan MONGO_ROOT_PASSWORD key value +data: + MONGO_ROOT_USERNAME: YWRtaW4= # Encode base64 'admin' + MONGO_ROOT_PASSWORD: c3VwZXJzZWNyZXRwYXNzd29yZA== # Encoded base64 'supersecretpassword' diff --git a/kubernetes/mongodb/mongo-service.yml b/kubernetes/mongodb/mongo-service.yml new file mode 100644 index 000000000..78a5d1b48 --- /dev/null +++ b/kubernetes/mongodb/mongo-service.yml @@ -0,0 +1,15 @@ +# Menggunakan apiVersion v1 +apiVersion: v1 +# Specify type of Kubernetes resource +kind: Service +metadata: + # Setting service name di metadata dengan mongo-service value + name: mongo-service +spec: + # Setting selector dari deployment untuk service + selector: + app: mongo + ports: + - port: 27017 + protocol: TCP + clusterIP: None diff --git a/kubernetes/mongodb/mongo-statefulset.yml b/kubernetes/mongodb/mongo-statefulset.yml new file mode 100644 index 000000000..f551586b7 --- /dev/null +++ b/kubernetes/mongodb/mongo-statefulset.yml @@ -0,0 +1,64 @@ +# Menggunakan apiVersion v1 +apiVersion: apps/v1 +# Specify type of Kubernetes resource +kind: StatefulSet +metadata: + # Setting statefulset name di metadata dengan mongo value + name: mongo + labels: + app: mongo +spec: + # Setting selector dari metadata untuk statefulset + selector: + matchLabels: + app: mongo + tier: db + # Setting service name untuk mongo-statefulset ke mongo-service + serviceName: mongo-service + replicas: 1 + minReadySeconds: 10 + template: + # Setting selector dari metadata untuk pod + metadata: + labels: + app: mongo + tier: db + spec: + terminationGracePeriodSeconds: 10 + containers: + # Setting container name + - name: mongodb + image: mongo + # Setting environment variable + env: + - name: MONGO_INITDB_ROOT_USERNAME_FILE + # Setting MONGO_INITDB_ROOT_USERNAME dari mount volumes + value: /etc/mongo-credentials/MONGO_ROOT_USERNAME + - name: MONGO_INITDB_ROOT_PASSWORD_FILE + # Setting MONGO_INITDB_ROOT_USERNAME dari mount volumes + value: /etc/mongo-credentials/MONGO_ROOT_PASSWORD + ports: + - containerPort: 27017 + name: mongo + # Config mount volumes untuk persistent-storage, config-mount dan secret-mount + volumeMounts: + - name: mongo-persistent-storage + mountPath: /data/db + - name: config-mount + mountPath: /config + - name: secret-mount + mountPath: /etc/mongo-credentials + volumes: + - name: secret-mount + secret: + secretName: mongo-secret + - name: config-mount + configMap: + name: mongo-configmap + items: + - key: mongo.conf + path: mongo.conf + # claim persistent storage + - name: mongo-persistent-storage + persistentVolumeClaim: + claimName: mongo-pvc diff --git a/link.txt b/link.txt new file mode 100644 index 000000000..7aa809f8e --- /dev/null +++ b/link.txt @@ -0,0 +1,7 @@ +# Image Backend + +https://github.com/skill-tzy/a433-microservices/pkgs/container/karsajobs + +# Image Frontend + +https://github.com/skill-tzy/a433-microservices/pkgs/container/karsajobs-ui diff --git a/log_Karsajobs-ui_CIGithubActions_Saran-4 b/log_Karsajobs-ui_CIGithubActions_Saran-4 new file mode 100644 index 000000000..0e652a217 --- /dev/null +++ b/log_Karsajobs-ui_CIGithubActions_Saran-4 @@ -0,0 +1,374 @@ +2024-02-23T13:52:02.6020088Z Requested labels: ubuntu-latest +2024-02-23T13:52:02.6020418Z Job defined at: skill-tzy/a433-microservices/.github/workflows/karsajobs-ui-ci.yaml@refs/heads/karsajobs-ui +2024-02-23T13:52:02.6020526Z Waiting for a runner to pick up this job... +2024-02-23T13:52:02.9988587Z Job is waiting for a hosted runner to come online. +2024-02-23T13:52:06.5307749Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted) +2024-02-23T13:52:09.2906584Z Current runner version: '2.313.0' +2024-02-23T13:52:09.2930987Z ##[group]Operating System +2024-02-23T13:52:09.2931672Z Ubuntu +2024-02-23T13:52:09.2932026Z 22.04.4 +2024-02-23T13:52:09.2932460Z LTS +2024-02-23T13:52:09.2932781Z ##[endgroup] +2024-02-23T13:52:09.2933187Z ##[group]Runner Image +2024-02-23T13:52:09.2933697Z Image: ubuntu-22.04 +2024-02-23T13:52:09.2934107Z Version: 20240218.1.0 +2024-02-23T13:52:09.2935085Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md +2024-02-23T13:52:09.2936594Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 +2024-02-23T13:52:09.2937466Z ##[endgroup] +2024-02-23T13:52:09.2937885Z ##[group]Runner Image Provisioner +2024-02-23T13:52:09.2938432Z 2.0.341.1 +2024-02-23T13:52:09.2938780Z ##[endgroup] +2024-02-23T13:52:09.2941011Z ##[group]GITHUB_TOKEN Permissions +2024-02-23T13:52:09.2942624Z Actions: write +2024-02-23T13:52:09.2943087Z Checks: write +2024-02-23T13:52:09.2943756Z Contents: write +2024-02-23T13:52:09.2944242Z Deployments: write +2024-02-23T13:52:09.2944733Z Discussions: write +2024-02-23T13:52:09.2945159Z Issues: write +2024-02-23T13:52:09.2945500Z Metadata: read +2024-02-23T13:52:09.2945985Z Packages: write +2024-02-23T13:52:09.2946392Z Pages: write +2024-02-23T13:52:09.2946741Z PullRequests: write +2024-02-23T13:52:09.2947255Z RepositoryProjects: write +2024-02-23T13:52:09.2947718Z SecurityEvents: write +2024-02-23T13:52:09.2948212Z Statuses: write +2024-02-23T13:52:09.2948589Z ##[endgroup] +2024-02-23T13:52:09.2951542Z Secret source: Actions +2024-02-23T13:52:09.2952257Z Prepare workflow directory +2024-02-23T13:52:09.3571150Z Prepare all required actions +2024-02-23T13:52:09.3728571Z Getting action download info +2024-02-23T13:52:09.5285970Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11) +2024-02-23T13:52:09.6390792Z Download action repository 'hadolint/hadolint-action@v3.1.0' (SHA:54c9adbab1582c2ef04b2016b760714a4bfde3cf) +2024-02-23T13:52:09.9281255Z Complete job name: Test-Build-Push +2024-02-23T13:52:09.9887411Z ##[group]Build container for action use: '/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0/Dockerfile'. +2024-02-23T13:52:09.9976488Z ##[command]/usr/bin/docker build -t 02e321:c0e2e0422b7c4e58807e9db8523a2238 -f "/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0/Dockerfile" "/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0" +2024-02-23T13:52:10.4599083Z #0 building with "default" instance using docker driver +2024-02-23T13:52:10.4599733Z +2024-02-23T13:52:10.4599915Z #1 [internal] load .dockerignore +2024-02-23T13:52:10.4600519Z #1 transferring context: 2B done +2024-02-23T13:52:10.4601170Z #1 DONE 0.0s +2024-02-23T13:52:10.4601440Z +2024-02-23T13:52:10.4601734Z #2 [internal] load build definition from Dockerfile +2024-02-23T13:52:10.4602437Z #2 transferring dockerfile: 221B done +2024-02-23T13:52:10.4603092Z #2 DONE 0.0s +2024-02-23T13:52:10.4603369Z +2024-02-23T13:52:10.4603795Z #3 [internal] load metadata for ghcr.io/hadolint/hadolint:v2.12.0-debian +2024-02-23T13:52:10.7549701Z #3 DONE 0.4s +2024-02-23T13:52:10.8645193Z +2024-02-23T13:52:10.8646208Z #4 [internal] load build context +2024-02-23T13:52:10.8649096Z #4 transferring context: 9.11kB done +2024-02-23T13:52:10.8649665Z #4 DONE 0.0s +2024-02-23T13:52:10.8649910Z +2024-02-23T13:52:10.8650498Z #5 [1/3] FROM ghcr.io/hadolint/hadolint:v2.12.0-debian@sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d +2024-02-23T13:52:10.8651781Z #5 resolve ghcr.io/hadolint/hadolint:v2.12.0-debian@sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d done +2024-02-23T13:52:10.8652839Z #5 sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d 741B / 741B done +2024-02-23T13:52:10.8655247Z #5 sha256:665ea7c2febb5533f964e122bb1f3a4d2226072269bd55139f7c00aebd464db3 740B / 740B done +2024-02-23T13:52:10.8656415Z #5 sha256:df21c2da50822cd910a7abab5f311996c4b363cdd8f61937694873326c836650 1.27kB / 1.27kB done +2024-02-23T13:52:10.8657889Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 5.24MB / 31.42MB 0.1s +2024-02-23T13:52:10.8658970Z #5 sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 0B / 2.38MB 0.1s +2024-02-23T13:52:11.0192875Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 28.31MB / 31.42MB 0.2s +2024-02-23T13:52:11.0194642Z #5 extracting sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 +2024-02-23T13:52:11.1205318Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 31.42MB / 31.42MB 0.2s done +2024-02-23T13:52:11.1207056Z #5 sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 2.38MB / 2.38MB 0.3s done +2024-02-23T13:52:12.2156114Z #5 extracting sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 1.2s done +2024-02-23T13:52:12.3944508Z #5 extracting sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 0.0s done +2024-02-23T13:52:12.3945698Z #5 DONE 1.6s +2024-02-23T13:52:12.5690408Z +2024-02-23T13:52:12.5691249Z #6 [2/3] COPY LICENSE README.md problem-matcher.json / +2024-02-23T13:52:12.5692013Z #6 DONE 0.0s +2024-02-23T13:52:12.5692195Z +2024-02-23T13:52:12.5692633Z #7 [3/3] COPY hadolint.sh /usr/local/bin/hadolint.sh +2024-02-23T13:52:12.5693137Z #7 DONE 0.0s +2024-02-23T13:52:12.5693371Z +2024-02-23T13:52:12.5693534Z #8 exporting to image +2024-02-23T13:52:12.5693990Z #8 exporting layers +2024-02-23T13:52:13.0080489Z #8 exporting layers 0.6s done +2024-02-23T13:52:13.0208005Z #8 writing image sha256:6a8d913ed1f4c9d257e7cece027d5d74783e76507b5191e1a4b8b8a368997e50 done +2024-02-23T13:52:13.0209533Z #8 naming to docker.io/library/02e321:c0e2e0422b7c4e58807e9db8523a2238 done +2024-02-23T13:52:13.0210567Z #8 DONE 0.6s +2024-02-23T13:52:13.0284347Z ##[endgroup] +2024-02-23T13:52:13.0647715Z ##[group]Run actions/checkout@v4 +2024-02-23T13:52:13.0648210Z with: +2024-02-23T13:52:13.0649006Z repository: skill-tzy/a433-microservices +2024-02-23T13:52:13.0649671Z token: *** +2024-02-23T13:52:13.0649992Z ssh-strict: true +2024-02-23T13:52:13.0650433Z persist-credentials: true +2024-02-23T13:52:13.0650829Z clean: true +2024-02-23T13:52:13.0651133Z sparse-checkout-cone-mode: true +2024-02-23T13:52:13.0651610Z fetch-depth: 1 +2024-02-23T13:52:13.0651956Z fetch-tags: false +2024-02-23T13:52:13.0652288Z show-progress: true +2024-02-23T13:52:13.0652677Z lfs: false +2024-02-23T13:52:13.0653002Z submodules: false +2024-02-23T13:52:13.0653341Z set-safe-directory: true +2024-02-23T13:52:13.0653779Z ##[endgroup] +2024-02-23T13:52:13.2258719Z Syncing repository: skill-tzy/a433-microservices +2024-02-23T13:52:13.2260803Z ##[group]Getting Git version info +2024-02-23T13:52:13.2262010Z Working directory is '/home/runner/work/a433-microservices/a433-microservices' +2024-02-23T13:52:13.2263701Z [command]/usr/bin/git version +2024-02-23T13:52:13.2264280Z git version 2.43.2 +2024-02-23T13:52:13.2266555Z ##[endgroup] +2024-02-23T13:52:13.2282752Z Temporarily overriding HOME='/home/runner/work/_temp/9678b739-0135-46ed-9f76-7e24a9003612' before making global git config changes +2024-02-23T13:52:13.2284513Z Adding repository directory to the temporary git global config as a safe directory +2024-02-23T13:52:13.2285599Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/a433-microservices/a433-microservices +2024-02-23T13:52:13.2295405Z Deleting the contents of '/home/runner/work/a433-microservices/a433-microservices' +2024-02-23T13:52:13.2300984Z ##[group]Initializing the repository +2024-02-23T13:52:13.2304494Z [command]/usr/bin/git init /home/runner/work/a433-microservices/a433-microservices +2024-02-23T13:52:13.2371644Z hint: Using 'master' as the name for the initial branch. This default branch name +2024-02-23T13:52:13.2373122Z hint: is subject to change. To configure the initial branch name to use in all +2024-02-23T13:52:13.2373915Z hint: of your new repositories, which will suppress this warning, call: +2024-02-23T13:52:13.2374430Z hint: +2024-02-23T13:52:13.2374991Z hint: git config --global init.defaultBranch +2024-02-23T13:52:13.2375709Z hint: +2024-02-23T13:52:13.2376245Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and +2024-02-23T13:52:13.2377087Z hint: 'development'. The just-created branch can be renamed via this command: +2024-02-23T13:52:13.2377657Z hint: +2024-02-23T13:52:13.2378008Z hint: git branch -m +2024-02-23T13:52:13.2388400Z Initialized empty Git repository in /home/runner/work/a433-microservices/a433-microservices/.git/ +2024-02-23T13:52:13.2399818Z [command]/usr/bin/git remote add origin https://github.com/skill-tzy/a433-microservices +2024-02-23T13:52:13.2439218Z ##[endgroup] +2024-02-23T13:52:13.2439976Z ##[group]Disabling automatic garbage collection +2024-02-23T13:52:13.2442182Z [command]/usr/bin/git config --local gc.auto 0 +2024-02-23T13:52:13.2469766Z ##[endgroup] +2024-02-23T13:52:13.2470411Z ##[group]Setting up auth +2024-02-23T13:52:13.2474935Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand +2024-02-23T13:52:13.2503806Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" +2024-02-23T13:52:13.2787935Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2024-02-23T13:52:13.2816266Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" +2024-02-23T13:52:13.3045833Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** +2024-02-23T13:52:13.3079639Z ##[endgroup] +2024-02-23T13:52:13.3081093Z ##[group]Fetching the repository +2024-02-23T13:52:13.3089360Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +3da6268f4ea2fe64f9ea6ebca05000a06f068eec:refs/remotes/origin/karsajobs-ui +2024-02-23T13:52:13.5228479Z From https://github.com/skill-tzy/a433-microservices +2024-02-23T13:52:13.5229907Z * [new ref] 3da6268f4ea2fe64f9ea6ebca05000a06f068eec -> origin/karsajobs-ui +2024-02-23T13:52:13.5255991Z ##[endgroup] +2024-02-23T13:52:13.5256980Z ##[group]Determining the checkout info +2024-02-23T13:52:13.5257973Z ##[endgroup] +2024-02-23T13:52:13.5258954Z ##[group]Checking out the ref +2024-02-23T13:52:13.5262690Z [command]/usr/bin/git checkout --progress --force -B karsajobs-ui refs/remotes/origin/karsajobs-ui +2024-02-23T13:52:13.5360418Z Switched to a new branch 'karsajobs-ui' +2024-02-23T13:52:13.5361907Z branch 'karsajobs-ui' set up to track 'origin/karsajobs-ui'. +2024-02-23T13:52:13.5368265Z ##[endgroup] +2024-02-23T13:52:13.5402853Z [command]/usr/bin/git log -1 --format='%H' +2024-02-23T13:52:13.5425992Z '3da6268f4ea2fe64f9ea6ebca05000a06f068eec' +2024-02-23T13:52:13.5778844Z ##[group]Run hadolint/hadolint-action@v3.1.0 +2024-02-23T13:52:13.5779442Z with: +2024-02-23T13:52:13.5779788Z dockerfile: Dockerfile +2024-02-23T13:52:13.5780173Z recursive: false +2024-02-23T13:52:13.5780600Z output-file: /dev/stdout +2024-02-23T13:52:13.5780943Z no-color: false +2024-02-23T13:52:13.5781279Z no-fail: false +2024-02-23T13:52:13.5781744Z verbose: false +2024-02-23T13:52:13.5782029Z format: tty +2024-02-23T13:52:13.5782362Z failure-threshold: info +2024-02-23T13:52:13.5782811Z ##[endgroup] +2024-02-23T13:52:13.6041716Z ##[command]/usr/bin/docker run --name e321c0e2e0422b7c4e58807e9db8523a2238_f02e45 --label 02e321 --workdir /github/workspace --rm -e "INPUT_DOCKERFILE" -e "INPUT_CONFIG" -e "INPUT_RECURSIVE" -e "INPUT_OUTPUT-FILE" -e "INPUT_NO-COLOR" -e "INPUT_NO-FAIL" -e "INPUT_VERBOSE" -e "INPUT_FORMAT" -e "INPUT_FAILURE-THRESHOLD" -e "INPUT_OVERRIDE-ERROR" -e "INPUT_OVERRIDE-WARNING" -e "INPUT_OVERRIDE-INFO" -e "INPUT_OVERRIDE-STYLE" -e "INPUT_IGNORE" -e "INPUT_TRUSTED-REGISTRIES" -e "NO_COLOR" -e "HADOLINT_NOFAIL" -e "HADOLINT_VERBOSE" -e "HADOLINT_FORMAT" -e "HADOLINT_FAILURE_THRESHOLD" -e "HADOLINT_OVERRIDE_ERROR" -e "HADOLINT_OVERRIDE_WARNING" -e "HADOLINT_OVERRIDE_INFO" -e "HADOLINT_OVERRIDE_STYLE" -e "HADOLINT_IGNORE" -e "HADOLINT_TRUSTED_REGISTRIES" -e "HADOLINT_CONFIG" -e "HADOLINT_RECURSIVE" -e "HADOLINT_OUTPUT" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/a433-microservices/a433-microservices":"/github/workspace" 02e321:c0e2e0422b7c4e58807e9db8523a2238 "Dockerfile" +2024-02-23T13:52:13.9195748Z +2024-02-23T13:52:13.9197618Z Hadolint output saved to: /dev/stdout +2024-02-23T13:52:14.0642380Z ##[group]Run export GHCR_PAT_TOKEN=$GHCR_PAT_TOKEN +2024-02-23T13:52:14.0643149Z ;1mexport GHCR_PAT_TOKEN=$GHCR_PAT_TOKEN +2024-02-23T13:52:14.0643703Z ;1mbash ./build_push_image_karsajobs_ui.sh +2024-02-23T13:52:14.0685975Z shell: /usr/bin/bash -e {0} +2024-02-23T13:52:14.0686367Z env: +2024-02-23T13:52:14.0686797Z HADOLINT_RESULTS: +2024-02-23T13:52:14.0687406Z GHCR_PAT_TOKEN: *** +2024-02-23T13:52:14.0687749Z ##[endgroup] +2024-02-23T13:52:14.4050833Z #0 building with "default" instance using docker driver +2024-02-23T13:52:14.4051753Z +2024-02-23T13:52:14.4052017Z #1 [internal] load build definition from Dockerfile +2024-02-23T13:52:14.4052880Z #1 transferring dockerfile: 193B done +2024-02-23T13:52:14.4053616Z #1 DONE 0.0s +2024-02-23T13:52:14.4053908Z +2024-02-23T13:52:14.4054505Z #2 [internal] load .dockerignore +2024-02-23T13:52:14.4055282Z #2 transferring context: 2B done +2024-02-23T13:52:14.4055918Z #2 DONE 0.0s +2024-02-23T13:52:14.4056258Z +2024-02-23T13:52:14.4057168Z #3 [auth] library/node:pull token for registry-1.docker.io +2024-02-23T13:52:14.4057894Z #3 DONE 0.0s +2024-02-23T13:52:14.4058132Z +2024-02-23T13:52:14.4058489Z #4 [internal] load metadata for docker.io/library/node:14.21-alpine +2024-02-23T13:52:14.5375975Z #4 DONE 0.3s +2024-02-23T13:52:14.6449764Z +2024-02-23T13:52:14.6450367Z #5 [internal] load build context +2024-02-23T13:52:14.6451274Z #5 transferring context: 1.44MB 0.0s done +2024-02-23T13:52:14.6452077Z #5 DONE 0.0s +2024-02-23T13:52:14.6453157Z +2024-02-23T13:52:14.6454312Z #6 [1/6] FROM docker.io/library/node:14.21-alpine@sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33 +2024-02-23T13:52:14.6457432Z #6 resolve docker.io/library/node:14.21-alpine@sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33 done +2024-02-23T13:52:14.6459397Z #6 sha256:f56be85fc22e46face30e2c3de3f7fe7c15f8fd7c4e5add29d7f64b87abdaa09 0B / 3.37MB 0.1s +2024-02-23T13:52:14.6461005Z #6 sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b 0B / 37.17MB 0.1s +2024-02-23T13:52:14.6462309Z #6 sha256:e5fca6c395a62ec277102af9e5283f6edb43b3e4f20f798e3ce7e425be226ba6 2.37MB / 2.37MB 0.1s done +2024-02-23T13:52:14.6463370Z #6 sha256:434215b487a329c9e867202ff89e704d3a75e554822e07f3e0c0f9e606121b33 1.43kB / 1.43kB done +2024-02-23T13:52:14.6464764Z #6 sha256:4e84c956cd276af9ed14a8b2939a734364c2b0042485e90e1b97175e73dfd548 1.16kB / 1.16kB done +2024-02-23T13:52:14.6465643Z #6 sha256:0dac3dc27b1ad570e6c3a7f7cd29e88e7130ff0cad31b2ec5a0f222fbe971bdb 6.44kB / 6.44kB done +2024-02-23T13:52:14.7614114Z #6 sha256:f56be85fc22e46face30e2c3de3f7fe7c15f8fd7c4e5add29d7f64b87abdaa09 3.37MB / 3.37MB 0.1s done +2024-02-23T13:52:14.7617532Z #6 sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b 11.53MB / 37.17MB 0.2s +2024-02-23T13:52:14.7618830Z #6 extracting sha256:f56be85fc22e46face30e2c3de3f7fe7c15f8fd7c4e5add29d7f64b87abdaa09 0.1s done +2024-02-23T13:52:14.7619993Z #6 sha256:561cb69653d56a9725be56e02128e4e96fb434a8b4b4decf2bdeb479a225feaf 448B / 448B 0.1s done +2024-02-23T13:52:14.9097423Z #6 sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b 32.51MB / 37.17MB 0.3s +2024-02-23T13:52:14.9098639Z #6 extracting sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b +2024-02-23T13:52:15.0131725Z #6 sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b 37.17MB / 37.17MB 0.4s done +2024-02-23T13:52:16.5861648Z #6 extracting sha256:8f665685b215c7daf9164545f1bbdd74d800af77d0d267db31fe0345c0c8fb8b 1.7s done +2024-02-23T13:52:16.8266285Z #6 extracting sha256:e5fca6c395a62ec277102af9e5283f6edb43b3e4f20f798e3ce7e425be226ba6 +2024-02-23T13:52:16.9293642Z #6 extracting sha256:e5fca6c395a62ec277102af9e5283f6edb43b3e4f20f798e3ce7e425be226ba6 0.1s done +2024-02-23T13:52:16.9295647Z #6 extracting sha256:561cb69653d56a9725be56e02128e4e96fb434a8b4b4decf2bdeb479a225feaf done +2024-02-23T13:52:16.9297002Z #6 DONE 2.4s +2024-02-23T13:52:16.9297383Z +2024-02-23T13:52:16.9297768Z #7 [2/6] WORKDIR /app +2024-02-23T13:52:16.9298754Z #7 DONE 0.0s +2024-02-23T13:52:17.0930371Z +2024-02-23T13:52:17.0931222Z #8 [3/6] COPY package*.json ./ +2024-02-23T13:52:17.0931760Z #8 DONE 0.0s +2024-02-23T13:52:17.0931948Z +2024-02-23T13:52:17.0932112Z #9 [4/6] RUN npm install +2024-02-23T13:52:17.7454111Z #9 0.652 npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! +2024-02-23T13:52:36.5120206Z #9 19.57 +2024-02-23T13:52:36.5121078Z #9 19.57 > yorkie@2.0.0 install /app/node_modules/yorkie +2024-02-23T13:52:36.5121821Z #9 19.57 > node bin/install.js +2024-02-23T13:52:36.5122636Z #9 19.57 +2024-02-23T13:52:36.6297682Z #9 19.69 setting up Git hooks +2024-02-23T13:52:36.7815499Z #9 19.69 can't find .git directory, skipping Git hooks installation +2024-02-23T13:52:36.7816128Z #9 19.77 +2024-02-23T13:52:36.7816916Z #9 19.77 > core-js@3.8.2 postinstall /app/node_modules/core-js +2024-02-23T13:52:36.7817631Z #9 19.77 > node -e "try{require('./postinstall')}catch(e){}" +2024-02-23T13:52:36.7818154Z #9 19.77 +2024-02-23T13:52:36.7819190Z #9 19.84 6mThank you for using core-js (4m https://github.com/zloirock/core-js 6m) for polyfilling JavaScript standard library!m +2024-02-23T13:52:36.7820097Z #9 19.84 +2024-02-23T13:52:36.7820841Z #9 19.84 6mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: +2024-02-23T13:52:36.7821888Z #9 19.84 6m>4m https://opencollective.com/core-js +2024-02-23T13:52:36.7822561Z #9 19.84 6m>4m https://www.patreon.com/zloirock +2024-02-23T13:52:36.7823077Z #9 19.84 +2024-02-23T13:52:36.7823844Z #9 19.84 6mAlso, the author of core-js (4m https://github.com/zloirock 6m) is looking for a good job -) +2024-02-23T13:52:36.7824604Z #9 19.84 +2024-02-23T13:52:37.0138810Z #9 19.85 +2024-02-23T13:52:37.0139590Z #9 19.85 > ejs@2.7.4 postinstall /app/node_modules/ejs +2024-02-23T13:52:37.0140554Z #9 19.85 > node ./postinstall.js +2024-02-23T13:52:37.0141419Z #9 19.85 +2024-02-23T13:52:37.0143133Z #9 19.92 Thank you for installing mEJS: built with the mJake JavaScript build tool (mhttps://jakejs.com/) +2024-02-23T13:52:37.0144484Z #9 19.92 +2024-02-23T13:52:37.8577385Z #9 20.91 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/tailwindcss/node_modules/chokidar/node_modules/fsevents): +2024-02-23T13:52:38.0376568Z #9 20.91 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) +2024-02-23T13:52:38.0378474Z #9 20.92 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): +2024-02-23T13:52:38.0380024Z #9 20.92 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) +2024-02-23T13:52:38.0381807Z #9 20.93 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents): +2024-02-23T13:52:38.0383347Z #9 20.93 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) +2024-02-23T13:52:38.0384688Z #9 20.94 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/fsevents): +2024-02-23T13:52:38.0386124Z #9 20.94 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) +2024-02-23T13:52:38.0387158Z #9 20.94 +2024-02-23T13:52:38.0387824Z #9 20.94 added 1438 packages from 1002 contributors and audited 1376 packages in 20.331s +2024-02-23T13:52:38.4821433Z #9 21.54 +2024-02-23T13:52:38.4822255Z #9 21.54 87 packages are looking for funding +2024-02-23T13:52:38.4823096Z #9 21.54 run `npm fund` for details +2024-02-23T13:52:38.4823528Z #9 21.54 +2024-02-23T13:52:38.6337711Z #9 21.54 found 200 vulnerabilities (2 low, 91 moderate, 83 high, 24 critical) +2024-02-23T13:52:38.6338921Z #9 21.54 run `npm audit fix` to fix them, or `npm audit` for details +2024-02-23T13:52:38.9631486Z #9 DONE 22.0s +2024-02-23T13:52:39.1454476Z +2024-02-23T13:52:39.1455210Z #10 [5/6] COPY . . +2024-02-23T13:52:39.1456027Z #10 DONE 0.0s +2024-02-23T13:52:39.1456365Z +2024-02-23T13:52:39.1456582Z #11 [6/6] RUN npm run build +2024-02-23T13:52:39.4533287Z #11 0.458 +2024-02-23T13:52:39.4536586Z #11 0.458 > karsajobs-ui@0.1.0 build /app +2024-02-23T13:52:39.4537694Z #11 0.458 > vue-cli-service build +2024-02-23T13:52:39.4538513Z #11 0.458 +2024-02-23T13:52:40.0269146Z #11 1.032 +2024-02-23T13:52:40.1783252Z #11 1.033 - Building for production... +2024-02-23T13:52:41.6354899Z #11 2.641 Browserslist: caniuse-lite is outdated. Please run: +2024-02-23T13:52:41.6356332Z #11 2.641 npx browserslist@latest --update-db +2024-02-23T13:52:41.6357115Z #11 2.641 +2024-02-23T13:52:41.6357680Z #11 2.641 Why you should do it regularly: +2024-02-23T13:52:41.6359018Z #11 2.641 https://github.com/browserslist/browserslist#browsers-data-updating +2024-02-23T13:52:43.1745988Z #11 4.180 Browserslist: caniuse-lite is outdated. Please run: +2024-02-23T13:52:43.1746912Z #11 4.180 npx browserslist@latest --update-db +2024-02-23T13:52:43.1747420Z #11 4.180 +2024-02-23T13:52:43.1747884Z #11 4.180 Why you should do it regularly: +2024-02-23T13:52:43.1748612Z #11 4.180 https://github.com/browserslist/browserslist#browsers-data-updating +2024-02-23T13:52:52.5661874Z #11 13.57 WARNING Compiled with 3 warnings1:52:52 PM +2024-02-23T13:52:52.7454599Z #11 13.57 +2024-02-23T13:52:52.7455438Z #11 13.57 warning +2024-02-23T13:52:52.7456204Z #11 13.57 +2024-02-23T13:52:52.7457148Z #11 13.57 asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). +2024-02-23T13:52:52.7458269Z #11 13.57 This can impact web performance. +2024-02-23T13:52:52.7459000Z #11 13.57 Assets: +2024-02-23T13:52:52.7459975Z #11 13.57 js/chunk-vendors.40977ee9.js (451 KiB) +2024-02-23T13:52:52.7460675Z #11 13.57 +2024-02-23T13:52:52.7461209Z #11 13.57 warning +2024-02-23T13:52:52.7461684Z #11 13.57 +2024-02-23T13:52:52.7462850Z #11 13.57 entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. +2024-02-23T13:52:52.7464557Z #11 13.57 Entrypoints: +2024-02-23T13:52:52.7464987Z #11 13.57 app (484 KiB) +2024-02-23T13:52:52.7465508Z #11 13.57 js/chunk-vendors.40977ee9.js +2024-02-23T13:52:52.7466145Z #11 13.57 css/app.4776cd94.css +2024-02-23T13:52:52.7466654Z #11 13.57 js/app.48039000.js +2024-02-23T13:52:52.7467204Z #11 13.57 +2024-02-23T13:52:52.7467546Z #11 13.57 +2024-02-23T13:52:52.7467906Z #11 13.57 warning +2024-02-23T13:52:52.7468381Z #11 13.57 +2024-02-23T13:52:52.7468789Z #11 13.57 webpack performance recommendations: +2024-02-23T13:52:52.7469937Z #11 13.57 You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. +2024-02-23T13:52:52.7471376Z #11 13.57 For more info visit https://webpack.js.org/guides/code-splitting/ +2024-02-23T13:52:52.7472139Z #11 13.57 +2024-02-23T13:52:52.7472650Z #11 13.60 File Size Gzipped +2024-02-23T13:52:52.7473248Z #11 13.60 +2024-02-23T13:52:52.7473814Z #11 13.60 dist/js/chunk-vendors.40977ee9.js 450.99 KiB 135.68 KiB +2024-02-23T13:52:52.7474576Z #11 13.60 dist/js/app.48039000.js 24.07 KiB 5.80 KiB +2024-02-23T13:52:52.7475410Z #11 13.60 dist/css/app.4776cd94.css 8.64 KiB 2.55 KiB +2024-02-23T13:52:52.7475953Z #11 13.60 +2024-02-23T13:52:52.7476356Z #11 13.60 Images and other types of assets omitted. +2024-02-23T13:52:52.7476903Z #11 13.60 +2024-02-23T13:52:52.7477361Z #11 13.60 DONE Build complete. The dist directory is ready to be deployed. +2024-02-23T13:52:52.7478520Z #11 13.60 INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html +2024-02-23T13:52:52.7479299Z #11 13.60 +2024-02-23T13:52:53.6959011Z #11 DONE 14.7s +2024-02-23T13:52:53.8468390Z +2024-02-23T13:52:53.8469060Z #12 exporting to image +2024-02-23T13:52:53.8469924Z #12 exporting layers +2024-02-23T13:52:58.2535969Z #12 exporting layers 4.6s done +2024-02-23T13:52:58.2668815Z #12 writing image sha256:03bd91b5d86708dd868193981b5b79454988dcbeac5c36c27768a067adc76142 done +2024-02-23T13:52:58.2670761Z #12 naming to docker.io/skill-tzy/karsajobs-ui:latest done +2024-02-23T13:52:58.2671739Z #12 DONE 4.6s +2024-02-23T13:52:58.2960883Z WARNING! Using --password via the CLI is insecure. Use --password-stdin. +2024-02-23T13:52:58.4276191Z WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. +2024-02-23T13:52:58.4278206Z Configure a credential helper to remove this warning. See +2024-02-23T13:52:58.4280190Z https://docs.docker.com/engine/reference/commandline/login/#credentials-store +2024-02-23T13:52:58.4281337Z +2024-02-23T13:52:58.4551629Z Login Succeeded +2024-02-23T13:52:58.4552692Z The push refers to repository [ghcr.io/skill-tzy/karsajobs-ui] +2024-02-23T13:52:58.4857911Z ae9c77541755: Preparing +2024-02-23T13:52:58.4858844Z 8adc5506e73a: Preparing +2024-02-23T13:52:58.4859552Z 26c66a008629: Preparing +2024-02-23T13:52:58.4860222Z 9618da4299e6: Preparing +2024-02-23T13:52:58.4860899Z c1cdf8268ace: Preparing +2024-02-23T13:52:58.4861473Z 31f710dc178f: Preparing +2024-02-23T13:52:58.4861966Z a599bf3e59b8: Preparing +2024-02-23T13:52:58.4862618Z e67e8085abae: Preparing +2024-02-23T13:52:58.4863177Z f1417ff83b31: Preparing +2024-02-23T13:52:58.4863709Z 31f710dc178f: Waiting +2024-02-23T13:52:58.4864218Z e67e8085abae: Waiting +2024-02-23T13:52:58.4864555Z f1417ff83b31: Waiting +2024-02-23T13:52:58.4864887Z a599bf3e59b8: Waiting +2024-02-23T13:52:59.1602400Z c1cdf8268ace: Pushed +2024-02-23T13:52:59.2210666Z 8adc5506e73a: Pushed +2024-02-23T13:52:59.2218617Z 9618da4299e6: Pushed +2024-02-23T13:52:59.2345884Z 31f710dc178f: Layer already exists +2024-02-23T13:52:59.2792226Z e67e8085abae: Layer already exists +2024-02-23T13:52:59.2870645Z a599bf3e59b8: Layer already exists +2024-02-23T13:52:59.3184545Z f1417ff83b31: Layer already exists +2024-02-23T13:52:59.4755466Z ae9c77541755: Pushed +2024-02-23T13:53:10.4165543Z 26c66a008629: Pushed +2024-02-23T13:53:12.2432681Z latest: digest: sha256:dd350be182fd62d55dd4bc67ff3987a10dd2bc3823832e42a4f41053a2e2255c size: 2206 +2024-02-23T13:53:12.2544920Z Post job cleanup. +2024-02-23T13:53:12.3280968Z [command]/usr/bin/git version +2024-02-23T13:53:12.3320574Z git version 2.43.2 +2024-02-23T13:53:12.3362381Z Temporarily overriding HOME='/home/runner/work/_temp/067585de-12ef-4f82-90ed-cca147b3a102' before making global git config changes +2024-02-23T13:53:12.3364317Z Adding repository directory to the temporary git global config as a safe directory +2024-02-23T13:53:12.3368261Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/a433-microservices/a433-microservices +2024-02-23T13:53:12.3402301Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand +2024-02-23T13:53:12.3432873Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" +2024-02-23T13:53:12.3669979Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2024-02-23T13:53:12.3689992Z http.https://github.com/.extraheader +2024-02-23T13:53:12.3701386Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader +2024-02-23T13:53:12.3730868Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" +2024-02-23T13:53:12.4207922Z Cleaning up orphan processes + diff --git a/log_Karsajobs_CIGithubActions_Saran-4 b/log_Karsajobs_CIGithubActions_Saran-4 new file mode 100644 index 000000000..af72d3c9f --- /dev/null +++ b/log_Karsajobs_CIGithubActions_Saran-4 @@ -0,0 +1,339 @@ +2024-02-23T04:25:40.5977509Z Requested labels: ubuntu-latest +2024-02-23T04:25:40.5977927Z Job defined at: skill-tzy/a433-microservices/.github/workflows/karsajobs-ci.yml@refs/heads/karsajobs +2024-02-23T04:25:40.5978140Z Waiting for a runner to pick up this job... +2024-02-23T04:25:40.7979837Z Job is waiting for a hosted runner to come online. +2024-02-23T04:25:43.8659233Z Job is about to start running on the hosted runner: GitHub Actions 6 (hosted) +2024-02-23T04:25:45.7109329Z Current runner version: '2.313.0' +2024-02-23T04:25:45.7132788Z ##[group]Operating System +2024-02-23T04:25:45.7133608Z Ubuntu +2024-02-23T04:25:45.7133942Z 22.04.4 +2024-02-23T04:25:45.7134284Z LTS +2024-02-23T04:25:45.7134689Z ##[endgroup] +2024-02-23T04:25:45.7135040Z ##[group]Runner Image +2024-02-23T04:25:45.7135491Z Image: ubuntu-22.04 +2024-02-23T04:25:45.7136318Z Version: 20240218.1.0 +2024-02-23T04:25:45.7137354Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240218.1/images/ubuntu/Ubuntu2204-Readme.md +2024-02-23T04:25:45.7138798Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240218.1 +2024-02-23T04:25:45.7139759Z ##[endgroup] +2024-02-23T04:25:45.7140175Z ##[group]Runner Image Provisioner +2024-02-23T04:25:45.7140658Z 2.0.341.1 +2024-02-23T04:25:45.7141028Z ##[endgroup] +2024-02-23T04:25:45.7143197Z ##[group]GITHUB_TOKEN Permissions +2024-02-23T04:25:45.7144979Z Actions: write +2024-02-23T04:25:45.7145431Z Checks: write +2024-02-23T04:25:45.7146033Z Contents: write +2024-02-23T04:25:45.7146503Z Deployments: write +2024-02-23T04:25:45.7146910Z Discussions: write +2024-02-23T04:25:45.7147386Z Issues: write +2024-02-23T04:25:45.7147743Z Metadata: read +2024-02-23T04:25:45.7148083Z Packages: write +2024-02-23T04:25:45.7148549Z Pages: write +2024-02-23T04:25:45.7148923Z PullRequests: write +2024-02-23T04:25:45.7149426Z RepositoryProjects: write +2024-02-23T04:25:45.7149869Z SecurityEvents: write +2024-02-23T04:25:45.7150282Z Statuses: write +2024-02-23T04:25:45.7150743Z ##[endgroup] +2024-02-23T04:25:45.7153795Z Secret source: Actions +2024-02-23T04:25:45.7154414Z Prepare workflow directory +2024-02-23T04:25:45.7780127Z Prepare all required actions +2024-02-23T04:25:45.7937564Z Getting action download info +2024-02-23T04:25:45.9370512Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11) +2024-02-23T04:25:46.0407142Z Download action repository 'hadolint/hadolint-action@v3.1.0' (SHA:54c9adbab1582c2ef04b2016b760714a4bfde3cf) +2024-02-23T04:25:46.3607536Z Complete job name: Test-Build-Push +2024-02-23T04:25:46.4227941Z ##[group]Build container for action use: '/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0/Dockerfile'. +2024-02-23T04:25:46.4314466Z ##[command]/usr/bin/docker build -t ee7285:ef1d23107aa34a81b4b1a9c8cd86c861 -f "/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0/Dockerfile" "/home/runner/work/_actions/hadolint/hadolint-action/v3.1.0" +2024-02-23T04:25:46.9533070Z #0 building with "default" instance using docker driver +2024-02-23T04:25:46.9533735Z +2024-02-23T04:25:46.9534024Z #1 [internal] load build definition from Dockerfile +2024-02-23T04:25:46.9534734Z #1 transferring dockerfile: 221B done +2024-02-23T04:25:46.9535372Z #1 DONE 0.0s +2024-02-23T04:25:46.9535653Z +2024-02-23T04:25:46.9535828Z #2 [internal] load .dockerignore +2024-02-23T04:25:46.9536665Z #2 transferring context: 2B done +2024-02-23T04:25:46.9537262Z #2 DONE 0.0s +2024-02-23T04:25:46.9537504Z +2024-02-23T04:25:46.9537897Z #3 [internal] load metadata for ghcr.io/hadolint/hadolint:v2.12.0-debian +2024-02-23T04:25:47.2059687Z #3 DONE 0.4s +2024-02-23T04:25:47.3143073Z +2024-02-23T04:25:47.3143973Z #4 [internal] load build context +2024-02-23T04:25:47.3145089Z #4 transferring context: 9.11kB done +2024-02-23T04:25:47.3145770Z #4 DONE 0.0s +2024-02-23T04:25:47.3146180Z +2024-02-23T04:25:47.3147077Z #5 [1/3] FROM ghcr.io/hadolint/hadolint:v2.12.0-debian@sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d +2024-02-23T04:25:47.3149263Z #5 resolve ghcr.io/hadolint/hadolint:v2.12.0-debian@sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d done +2024-02-23T04:25:47.3151091Z #5 sha256:665ea7c2febb5533f964e122bb1f3a4d2226072269bd55139f7c00aebd464db3 740B / 740B done +2024-02-23T04:25:47.3152510Z #5 sha256:df21c2da50822cd910a7abab5f311996c4b363cdd8f61937694873326c836650 1.27kB / 1.27kB done +2024-02-23T04:25:47.3153893Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 2.10MB / 31.42MB 0.1s +2024-02-23T04:25:47.3155905Z #5 sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 0B / 2.38MB 0.1s +2024-02-23T04:25:47.3157575Z #5 sha256:27173fe25e062448490a32de410c08491c626a0bef360aa2ce5d5bdd9384b50d 741B / 741B done +2024-02-23T04:25:47.4146537Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 20.97MB / 31.42MB 0.2s +2024-02-23T04:25:47.4148311Z #5 sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 2.38MB / 2.38MB 0.1s done +2024-02-23T04:25:47.5937209Z #5 sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 31.42MB / 31.42MB 0.3s done +2024-02-23T04:25:47.5939132Z #5 extracting sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 0.1s +2024-02-23T04:25:48.7063389Z #5 extracting sha256:e9995326b091af7b3ce352fad4d76cf3a3cb62b7a0c35cc5f625e8e649d23c50 1.2s done +2024-02-23T04:25:48.8779430Z #5 extracting sha256:405c84fd6fe2ec3923fb21bdc293f6d8c7ee5c91d7d64a25ef2a168539cc303f 0.0s done +2024-02-23T04:25:48.8780676Z #5 DONE 1.7s +2024-02-23T04:25:49.0532412Z +2024-02-23T04:25:49.0533282Z #6 [2/3] COPY LICENSE README.md problem-matcher.json / +2024-02-23T04:25:49.0534177Z #6 DONE 0.0s +2024-02-23T04:25:49.0534784Z +2024-02-23T04:25:49.0535117Z #7 [3/3] COPY hadolint.sh /usr/local/bin/hadolint.sh +2024-02-23T04:25:49.0535921Z #7 DONE 0.0s +2024-02-23T04:25:49.0536515Z +2024-02-23T04:25:49.0536723Z #8 exporting to image +2024-02-23T04:25:49.0537524Z #8 exporting layers +2024-02-23T04:25:49.0797198Z #8 exporting layers 0.2s done +2024-02-23T04:25:49.0940313Z #8 writing image sha256:9b660ed5c74c4bf2ef221200d30fcea00cf6d6afebd1775e7660512e1ba11f56 done +2024-02-23T04:25:49.0941820Z #8 naming to docker.io/library/ee7285:ef1d23107aa34a81b4b1a9c8cd86c861 done +2024-02-23T04:25:49.0942728Z #8 DONE 0.2s +2024-02-23T04:25:49.1018044Z ##[endgroup] +2024-02-23T04:25:49.1382088Z ##[group]Run actions/checkout@v4 +2024-02-23T04:25:49.1382677Z with: +2024-02-23T04:25:49.1383032Z repository: skill-tzy/a433-microservices +2024-02-23T04:25:49.1383739Z token: *** +2024-02-23T04:25:49.1384082Z ssh-strict: true +2024-02-23T04:25:49.1384434Z persist-credentials: true +2024-02-23T04:25:49.1384883Z clean: true +2024-02-23T04:25:49.1385187Z sparse-checkout-cone-mode: true +2024-02-23T04:25:49.1385596Z fetch-depth: 1 +2024-02-23T04:25:49.1385995Z fetch-tags: false +2024-02-23T04:25:49.1386332Z show-progress: true +2024-02-23T04:25:49.1386628Z lfs: false +2024-02-23T04:25:49.1387012Z submodules: false +2024-02-23T04:25:49.1387348Z set-safe-directory: true +2024-02-23T04:25:49.1387707Z ##[endgroup] +2024-02-23T04:25:49.3001806Z Syncing repository: skill-tzy/a433-microservices +2024-02-23T04:25:49.3004055Z ##[group]Getting Git version info +2024-02-23T04:25:49.3005361Z Working directory is '/home/runner/work/a433-microservices/a433-microservices' +2024-02-23T04:25:49.3006972Z [command]/usr/bin/git version +2024-02-23T04:25:49.3007518Z git version 2.43.2 +2024-02-23T04:25:49.3009502Z ##[endgroup] +2024-02-23T04:25:49.3024011Z Temporarily overriding HOME='/home/runner/work/_temp/6dc9f887-2869-4a29-9674-a791a046e729' before making global git config changes +2024-02-23T04:25:49.3025782Z Adding repository directory to the temporary git global config as a safe directory +2024-02-23T04:25:49.3027543Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/a433-microservices/a433-microservices +2024-02-23T04:25:49.3030020Z Deleting the contents of '/home/runner/work/a433-microservices/a433-microservices' +2024-02-23T04:25:49.3031456Z ##[group]Initializing the repository +2024-02-23T04:25:49.3032647Z [command]/usr/bin/git init /home/runner/work/a433-microservices/a433-microservices +2024-02-23T04:25:49.3070753Z hint: Using 'master' as the name for the initial branch. This default branch name +2024-02-23T04:25:49.3072186Z hint: is subject to change. To configure the initial branch name to use in all +2024-02-23T04:25:49.3073413Z hint: of your new repositories, which will suppress this warning, call: +2024-02-23T04:25:49.3074284Z hint: +2024-02-23T04:25:49.3075955Z hint: git config --global init.defaultBranch +2024-02-23T04:25:49.3076990Z hint: +2024-02-23T04:25:49.3077768Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and +2024-02-23T04:25:49.3079198Z hint: 'development'. The just-created branch can be renamed via this command: +2024-02-23T04:25:49.3080102Z hint: +2024-02-23T04:25:49.3081538Z hint: git branch -m +2024-02-23T04:25:49.3082809Z Initialized empty Git repository in /home/runner/work/a433-microservices/a433-microservices/.git/ +2024-02-23T04:25:49.3086168Z [command]/usr/bin/git remote add origin https://github.com/skill-tzy/a433-microservices +2024-02-23T04:25:49.3119158Z ##[endgroup] +2024-02-23T04:25:49.3120055Z ##[group]Disabling automatic garbage collection +2024-02-23T04:25:49.3121519Z [command]/usr/bin/git config --local gc.auto 0 +2024-02-23T04:25:49.3149752Z ##[endgroup] +2024-02-23T04:25:49.3150409Z ##[group]Setting up auth +2024-02-23T04:25:49.3154772Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand +2024-02-23T04:25:49.3183076Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" +2024-02-23T04:25:49.3466094Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2024-02-23T04:25:49.3492170Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" +2024-02-23T04:25:49.3724694Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** +2024-02-23T04:25:49.3756784Z ##[endgroup] +2024-02-23T04:25:49.3758106Z ##[group]Fetching the repository +2024-02-23T04:25:49.3766165Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +90bf0f6d27092607b305415479a555147325716d:refs/remotes/origin/karsajobs +2024-02-23T04:25:49.5250576Z From https://github.com/skill-tzy/a433-microservices +2024-02-23T04:25:49.5252583Z * [new ref] 90bf0f6d27092607b305415479a555147325716d -> origin/karsajobs +2024-02-23T04:25:49.5279626Z ##[endgroup] +2024-02-23T04:25:49.5280406Z ##[group]Determining the checkout info +2024-02-23T04:25:49.5282542Z ##[endgroup] +2024-02-23T04:25:49.5283317Z ##[group]Checking out the ref +2024-02-23T04:25:49.5288568Z [command]/usr/bin/git checkout --progress --force -B karsajobs refs/remotes/origin/karsajobs +2024-02-23T04:25:49.5346683Z Switched to a new branch 'karsajobs' +2024-02-23T04:25:49.5348271Z branch 'karsajobs' set up to track 'origin/karsajobs'. +2024-02-23T04:25:49.5354392Z ##[endgroup] +2024-02-23T04:25:49.5387370Z [command]/usr/bin/git log -1 --format='%H' +2024-02-23T04:25:49.5410403Z '90bf0f6d27092607b305415479a555147325716d' +2024-02-23T04:25:49.5736912Z ##[group]Run hadolint/hadolint-action@v3.1.0 +2024-02-23T04:25:49.5737428Z with: +2024-02-23T04:25:49.5737814Z dockerfile: Dockerfile +2024-02-23T04:25:49.5738196Z recursive: false +2024-02-23T04:25:49.5738556Z output-file: /dev/stdout +2024-02-23T04:25:49.5738958Z no-color: false +2024-02-23T04:25:49.5739283Z no-fail: false +2024-02-23T04:25:49.5739638Z verbose: false +2024-02-23T04:25:49.5740030Z format: tty +2024-02-23T04:25:49.5740340Z failure-threshold: info +2024-02-23T04:25:49.5740695Z ##[endgroup] +2024-02-23T04:25:49.5990554Z ##[command]/usr/bin/docker run --name ee7285ef1d23107aa34a81b4b1a9c8cd86c861_626319 --label ee7285 --workdir /github/workspace --rm -e "INPUT_DOCKERFILE" -e "INPUT_CONFIG" -e "INPUT_RECURSIVE" -e "INPUT_OUTPUT-FILE" -e "INPUT_NO-COLOR" -e "INPUT_NO-FAIL" -e "INPUT_VERBOSE" -e "INPUT_FORMAT" -e "INPUT_FAILURE-THRESHOLD" -e "INPUT_OVERRIDE-ERROR" -e "INPUT_OVERRIDE-WARNING" -e "INPUT_OVERRIDE-INFO" -e "INPUT_OVERRIDE-STYLE" -e "INPUT_IGNORE" -e "INPUT_TRUSTED-REGISTRIES" -e "NO_COLOR" -e "HADOLINT_NOFAIL" -e "HADOLINT_VERBOSE" -e "HADOLINT_FORMAT" -e "HADOLINT_FAILURE_THRESHOLD" -e "HADOLINT_OVERRIDE_ERROR" -e "HADOLINT_OVERRIDE_WARNING" -e "HADOLINT_OVERRIDE_INFO" -e "HADOLINT_OVERRIDE_STYLE" -e "HADOLINT_IGNORE" -e "HADOLINT_TRUSTED_REGISTRIES" -e "HADOLINT_CONFIG" -e "HADOLINT_RECURSIVE" -e "HADOLINT_OUTPUT" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/a433-microservices/a433-microservices":"/github/workspace" ee7285:ef1d23107aa34a81b4b1a9c8cd86c861 "Dockerfile" +2024-02-23T04:25:49.9092753Z +2024-02-23T04:25:49.9096433Z Hadolint output saved to: /dev/stdout +2024-02-23T04:25:50.0653958Z ##[group]Run go test -v -short --count=1 $(go list ./...) +2024-02-23T04:25:50.0654656Z ;1mgo test -v -short --count=1 $(go list ./...) +2024-02-23T04:25:50.0697209Z shell: /usr/bin/bash -e {0} +2024-02-23T04:25:50.0697620Z env: +2024-02-23T04:25:50.0698091Z HADOLINT_RESULTS: +2024-02-23T04:25:50.0698432Z ##[endgroup] +2024-02-23T04:25:51.2577762Z go: downloading go.mongodb.org/mongo-driver v1.4.4 +2024-02-23T04:25:51.5809857Z go: downloading github.com/go-chi/chi v1.5.1 +2024-02-23T04:25:51.6015351Z go: downloading github.com/go-chi/cors v1.1.1 +2024-02-23T04:25:52.2661322Z go: downloading github.com/pkg/errors v0.9.1 +2024-02-23T04:25:53.1675934Z go: downloading github.com/go-stack/stack v1.8.0 +2024-02-23T04:25:53.4957939Z go: downloading github.com/golang/snappy v0.0.1 +2024-02-23T04:25:53.4965077Z go: downloading github.com/klauspost/compress v1.9.5 +2024-02-23T04:25:53.5118693Z go: downloading github.com/aws/aws-sdk-go v1.34.28 +2024-02-23T04:25:53.9946716Z go: downloading github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c +2024-02-23T04:25:54.0072449Z go: downloading github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc +2024-02-23T04:25:54.0147890Z go: downloading golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 +2024-02-23T04:25:54.1761982Z go: downloading golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e +2024-02-23T04:25:54.4174417Z go: downloading golang.org/x/text v0.3.3 +2024-02-23T04:25:55.4054077Z go: downloading github.com/jmespath/go-jmespath v0.4.0 +2024-02-23T04:26:11.9665374Z ? github.com/nothinux/karsajobs/pkg/models [no test files] +2024-02-23T04:26:11.9753185Z === RUN TestHomeHandler +2024-02-23T04:26:11.9754254Z --- PASS: TestHomeHandler (0.00s) +2024-02-23T04:26:11.9754679Z === RUN TestGetJobsHandler +2024-02-23T04:26:11.9755151Z handlers_test.go:46: skipping integration test +2024-02-23T04:26:11.9755766Z --- SKIP: TestGetJobsHandler (0.00s) +2024-02-23T04:26:11.9756177Z PASS +2024-02-23T04:26:11.9756522Z ok github.com/nothinux/karsajobs/cmd/web 0.006s +2024-02-23T04:26:11.9765166Z === RUN TestToObjID +2024-02-23T04:26:11.9765832Z --- PASS: TestToObjID (0.00s) +2024-02-23T04:26:11.9766427Z === RUN TestGetJobPosts +2024-02-23T04:26:11.9766809Z jobs_test.go:18: skipping integration test +2024-02-23T04:26:11.9767763Z --- SKIP: TestGetJobPosts (0.00s) +2024-02-23T04:26:11.9768245Z === RUN TestGetJobPost +2024-02-23T04:26:11.9768666Z jobs_test.go:62: skipping integration test +2024-02-23T04:26:11.9769118Z --- SKIP: TestGetJobPost (0.00s) +2024-02-23T04:26:11.9769575Z === RUN TestInsertJobPost +2024-02-23T04:26:11.9770002Z jobs_test.go:115: skipping integration test +2024-02-23T04:26:11.9770460Z --- SKIP: TestInsertJobPost (0.00s) +2024-02-23T04:26:11.9770931Z === RUN TestDeleteJobPost +2024-02-23T04:26:11.9771351Z jobs_test.go:149: skipping integration test +2024-02-23T04:26:11.9771830Z --- SKIP: TestDeleteJobPost (0.00s) +2024-02-23T04:26:11.9772252Z PASS +2024-02-23T04:26:11.9772679Z ok github.com/nothinux/karsajobs/pkg/models/mongodb 0.006s +2024-02-23T04:26:12.0391846Z ##[group]Run export GHCR_PAT_TOKEN=$GHCR_PAT_TOKEN +2024-02-23T04:26:12.0392526Z ;1mexport GHCR_PAT_TOKEN=$GHCR_PAT_TOKEN +2024-02-23T04:26:12.0393021Z ;1mbash ./build_push_image_karsajobs.sh +2024-02-23T04:26:12.0420652Z shell: /usr/bin/bash -e {0} +2024-02-23T04:26:12.0421057Z env: +2024-02-23T04:26:12.0421429Z HADOLINT_RESULTS: +2024-02-23T04:26:12.0422042Z GHCR_PAT_TOKEN: *** +2024-02-23T04:26:12.0422438Z ##[endgroup] +2024-02-23T04:26:12.1927050Z #0 building with "default" instance using docker driver +2024-02-23T04:26:12.1927689Z +2024-02-23T04:26:12.1928194Z #1 [internal] load build definition from Dockerfile +2024-02-23T04:26:12.3786940Z #1 transferring dockerfile: 295B done +2024-02-23T04:26:12.3787651Z #1 DONE 0.0s +2024-02-23T04:26:12.3787877Z +2024-02-23T04:26:12.3788029Z #2 [internal] load .dockerignore +2024-02-23T04:26:12.3788458Z #2 transferring context: 2B done +2024-02-23T04:26:12.3788898Z #2 DONE 0.0s +2024-02-23T04:26:12.3789108Z +2024-02-23T04:26:12.3789690Z #3 [auth] library/golang:pull token for registry-1.docker.io +2024-02-23T04:26:12.3790280Z #3 DONE 0.0s +2024-02-23T04:26:12.3790459Z +2024-02-23T04:26:12.3790787Z #4 [internal] load metadata for docker.io/library/golang:1.15-alpine +2024-02-23T04:26:12.5374234Z #4 DONE 0.3s +2024-02-23T04:26:12.6445013Z +2024-02-23T04:26:12.6445704Z #5 [internal] load build context +2024-02-23T04:26:12.6446762Z #5 transferring context: 85.47kB 0.0s done +2024-02-23T04:26:12.6447505Z #5 DONE 0.0s +2024-02-23T04:26:12.6447858Z +2024-02-23T04:26:12.6448921Z #6 [1/7] FROM docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 +2024-02-23T04:26:12.6450989Z #6 resolve docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 done +2024-02-23T04:26:12.6452747Z #6 extracting sha256:29291e31a76a7e560b9b7ad3cada56e8c18d50a96cca8a2573e4f4689d7aca77 +2024-02-23T04:26:12.6454321Z #6 sha256:dc5787428863f5e2f832b52bf7405c191c575a9b38a19ae4d0cc641079242e63 1.36kB / 1.36kB done +2024-02-23T04:26:12.6455896Z #6 sha256:1403af3b6d4ae3d0021f289a714d4df962b6be59a7fdecf4c6363c9b0f47c340 5.13kB / 5.13kB done +2024-02-23T04:26:12.6457383Z #6 sha256:29291e31a76a7e560b9b7ad3cada56e8c18d50a96cca8a2573e4f4689d7aca77 2.81MB / 2.81MB 0.1s done +2024-02-23T04:26:12.6458730Z #6 sha256:e4bc8fc554c31c0fb115880309eafbbdfcbeaa5259281e59b26346027eb06831 281.50kB / 281.50kB 0.0s done +2024-02-23T04:26:12.6460776Z #6 sha256:803daa35ea4774c1839c77f23e37057a576d5cce3a041b2e2b5f700cf3f036b9 155B / 155B 0.1s done +2024-02-23T04:26:12.6462220Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 2.10MB / 106.92MB 0.1s +2024-02-23T04:26:12.6463334Z #6 sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a 0B / 155B 0.1s +2024-02-23T04:26:12.6464386Z #6 sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 1.65kB / 1.65kB done +2024-02-23T04:26:12.7742127Z #6 extracting sha256:29291e31a76a7e560b9b7ad3cada56e8c18d50a96cca8a2573e4f4689d7aca77 0.1s done +2024-02-23T04:26:12.7743712Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 15.73MB / 106.92MB 0.2s +2024-02-23T04:26:12.7745105Z #6 sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a 155B / 155B 0.1s done +2024-02-23T04:26:12.7747032Z #6 extracting sha256:e4bc8fc554c31c0fb115880309eafbbdfcbeaa5259281e59b26346027eb06831 0.0s done +2024-02-23T04:26:12.9579345Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 55.57MB / 106.92MB 0.4s +2024-02-23T04:26:13.1451208Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 83.89MB / 106.92MB 0.6s +2024-02-23T04:26:13.1452391Z #6 extracting sha256:803daa35ea4774c1839c77f23e37057a576d5cce3a041b2e2b5f700cf3f036b9 done +2024-02-23T04:26:13.2453858Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 99.61MB / 106.92MB 0.7s +2024-02-23T04:26:13.4425097Z #6 sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 106.92MB / 106.92MB 0.8s done +2024-02-23T04:26:13.4426116Z #6 extracting sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 0.1s +2024-02-23T04:26:17.1245123Z #6 extracting sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 3.6s done +2024-02-23T04:26:17.6335736Z #6 extracting sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a +2024-02-23T04:26:17.8385587Z #6 extracting sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a done +2024-02-23T04:26:17.8387628Z #6 DONE 5.1s +2024-02-23T04:26:17.8387970Z +2024-02-23T04:26:17.8388455Z #7 [2/7] WORKDIR /go/src/github.com/dicodingacademy/karsajobs +2024-02-23T04:26:17.8389296Z #7 DONE 0.0s +2024-02-23T04:26:17.8389542Z +2024-02-23T04:26:17.8390120Z #8 [3/7] COPY go.mod . +2024-02-23T04:26:17.8390726Z #8 DONE 0.0s +2024-02-23T04:26:17.8390962Z +2024-02-23T04:26:17.8391243Z #9 [4/7] COPY go.sum . +2024-02-23T04:26:17.8392510Z #9 DONE 0.0s +2024-02-23T04:26:17.8392821Z +2024-02-23T04:26:17.8393103Z #10 [5/7] RUN go mod download +2024-02-23T04:26:21.2254461Z #10 DONE 3.5s +2024-02-23T04:26:21.4027150Z +2024-02-23T04:26:21.4027785Z #11 [6/7] COPY . . +2024-02-23T04:26:21.4028562Z #11 DONE 0.0s +2024-02-23T04:26:21.4028848Z +2024-02-23T04:26:21.4029602Z #12 [7/7] RUN mkdir /build; go build -o /build/ ./... +2024-02-23T04:26:26.4669590Z #12 DONE 5.2s +2024-02-23T04:26:26.6180083Z +2024-02-23T04:26:26.6181010Z #13 exporting to image +2024-02-23T04:26:26.6181701Z #13 exporting layers +2024-02-23T04:26:29.6396647Z #13 exporting layers 3.2s done +2024-02-23T04:26:29.6531667Z #13 writing image sha256:5172b0dfeb9032ca71e12878defdd5e63f468fd2cdf89d048f9cb080a427f803 done +2024-02-23T04:26:29.6533527Z #13 naming to docker.io/skill-tzy/karsajobs:latest done +2024-02-23T04:26:29.6534414Z #13 DONE 3.2s +2024-02-23T04:26:29.6828134Z WARNING! Using --password via the CLI is insecure. Use --password-stdin. +2024-02-23T04:26:29.7827576Z WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. +2024-02-23T04:26:29.7829023Z Configure a credential helper to remove this warning. See +2024-02-23T04:26:29.7830384Z https://docs.docker.com/engine/reference/commandline/login/#credentials-store +2024-02-23T04:26:29.7831334Z +2024-02-23T04:26:29.7831576Z Login Succeeded +2024-02-23T04:26:29.8049535Z The push refers to repository [ghcr.io/skill-tzy/karsajobs] +2024-02-23T04:26:29.8233014Z 91f63dcc881d: Preparing +2024-02-23T04:26:29.8234141Z 449a45176430: Preparing +2024-02-23T04:26:29.8235007Z 15e562a0bdd3: Preparing +2024-02-23T04:26:29.8235809Z c56f87026b20: Preparing +2024-02-23T04:26:29.8236684Z 31123fb328dd: Preparing +2024-02-23T04:26:29.8237411Z 808cf101c223: Preparing +2024-02-23T04:26:29.8237917Z 1cdba0ea84fc: Preparing +2024-02-23T04:26:29.8238448Z 8ad0a1441de6: Preparing +2024-02-23T04:26:29.8239079Z c0ed5374a14a: Preparing +2024-02-23T04:26:29.8239603Z 6d0c7e68c043: Preparing +2024-02-23T04:26:29.8240079Z bc276c40b172: Preparing +2024-02-23T04:26:29.8240696Z 808cf101c223: Waiting +2024-02-23T04:26:29.8241222Z 1cdba0ea84fc: Waiting +2024-02-23T04:26:29.8241846Z c0ed5374a14a: Waiting +2024-02-23T04:26:29.8242310Z 6d0c7e68c043: Waiting +2024-02-23T04:26:29.8242812Z bc276c40b172: Waiting +2024-02-23T04:26:29.8243425Z 8ad0a1441de6: Waiting +2024-02-23T04:26:30.3161170Z 31123fb328dd: Pushed +2024-02-23T04:26:30.3340278Z c56f87026b20: Pushed +2024-02-23T04:26:30.3553320Z 449a45176430: Pushed +2024-02-23T04:26:30.4082582Z 1cdba0ea84fc: Layer already exists +2024-02-23T04:26:30.4143206Z 8ad0a1441de6: Layer already exists +2024-02-23T04:26:30.4565551Z 6d0c7e68c043: Layer already exists +2024-02-23T04:26:30.4589029Z c0ed5374a14a: Layer already exists +2024-02-23T04:26:30.4977573Z bc276c40b172: Layer already exists +2024-02-23T04:26:30.7106704Z 808cf101c223: Pushed +2024-02-23T04:26:32.5227903Z 91f63dcc881d: Pushed +2024-02-23T04:26:42.8562243Z 15e562a0bdd3: Pushed +2024-02-23T04:26:43.5723104Z latest: digest: sha256:d9248a063ae51b4e322e764cfc3eb4a3ea1b72a7f55f4511b2bfc970ae23c462 size: 2621 +2024-02-23T04:26:43.5836475Z Post job cleanup. +2024-02-23T04:26:43.6555701Z [command]/usr/bin/git version +2024-02-23T04:26:43.6595633Z git version 2.43.2 +2024-02-23T04:26:43.6638588Z Temporarily overriding HOME='/home/runner/work/_temp/df3feb91-a8ec-4783-a8fd-b547967b1d5a' before making global git config changes +2024-02-23T04:26:43.6640692Z Adding repository directory to the temporary git global config as a safe directory +2024-02-23T04:26:43.6644738Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/a433-microservices/a433-microservices +2024-02-23T04:26:43.6680341Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand +2024-02-23T04:26:43.6712020Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" +2024-02-23T04:26:43.6951299Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2024-02-23T04:26:43.6970909Z http.https://github.com/.extraheader +2024-02-23T04:26:43.6981499Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader +2024-02-23T04:26:43.7009762Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" +2024-02-23T04:26:43.7487015Z Cleaning up orphan processes + diff --git a/monitoring.txt b/monitoring.txt new file mode 100644 index 000000000..88cd6ecde --- /dev/null +++ b/monitoring.txt @@ -0,0 +1,36 @@ +NAME READY STATUS RESTARTS AGE +pod/grafana-57cdbcf4f9-nw44w 1/1 Running 0 35m +pod/prometheus-alertmanager-0 1/1 Running 0 42m +pod/prometheus-kube-state-metrics-5d5d748fcb-8mm9n 1/1 Running 0 42m +pod/prometheus-prometheus-node-exporter-jj78l 1/1 Running 0 42m +pod/prometheus-prometheus-pushgateway-8647d94cf6-rzff6 1/1 Running 0 42m +pod/prometheus-server-66997ccd8b-9kkk8 2/2 Running 0 42m + +NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE +service/grafana ClusterIP 10.105.111.3 80/TCP 35m +service/grafana-ext NodePort 10.98.252.202 80:31147/TCP 35m +service/prometheus-alertmanager ClusterIP 10.105.66.33 9093/TCP 42m +service/prometheus-alertmanager-headless ClusterIP None 9093/TCP 42m +service/prometheus-kube-state-metrics ClusterIP 10.96.77.210 8080/TCP 42m +service/prometheus-prometheus-node-exporter ClusterIP 10.98.185.213 9100/TCP 42m +service/prometheus-prometheus-pushgateway ClusterIP 10.107.0.65 9091/TCP 42m +service/prometheus-server ClusterIP 10.104.103.160 80/TCP 42m +service/prometheus-server-ext NodePort 10.111.128.227 80:30749/TCP 39m + +NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE +daemonset.apps/prometheus-prometheus-node-exporter 1 1 1 1 1 kubernetes.io/os=linux 42m + +NAME READY UP-TO-DATE AVAILABLE AGE +deployment.apps/grafana 1/1 1 1 35m +deployment.apps/prometheus-kube-state-metrics 1/1 1 1 42m +deployment.apps/prometheus-prometheus-pushgateway 1/1 1 1 42m +deployment.apps/prometheus-server 1/1 1 1 42m + +NAME DESIRED CURRENT READY AGE +replicaset.apps/grafana-57cdbcf4f9 1 1 1 35m +replicaset.apps/prometheus-kube-state-metrics-5d5d748fcb 1 1 1 42m +replicaset.apps/prometheus-prometheus-pushgateway-8647d94cf6 1 1 1 42m +replicaset.apps/prometheus-server-66997ccd8b 1 1 1 42m + +NAME READY AGE +statefulset.apps/prometheus-alertmanager 1/1 42m