Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Martin Grigorov martin-g

🏠
Working from home
View GitHub Profile
View concourse-execute-pipeline.sh
#!/bin/bash
set -eu
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export fly_target=${fly_target:-tutorial}
echo "Concourse API target ${fly_target}"
echo "Tutorial $(basename $DIR)"
pushd $DIR
@martin-g
martin-g / concourse-basic-pipeline.yml
Created Jan 20, 2021
A ConcourseCI pipeline definition that runs the hello-world task only on worker nodes tagged with 'arm64'
View concourse-basic-pipeline.yml
---
jobs:
- name: job-hello-world
public: true
plan:
- task: hello-world
tags: [arm64]
config:
platform: linux
image_resource:
View councourse-task-hello-world.yml
---
platform: linux
image_resource:
type: registry-image
source:
repository: arm64v8/busybox
tag: latest
run:
@martin-g
martin-g / concourse-worker-node.fish
Last active Jan 20, 2021
Fish shell script that starts concourse-arm-worker Docker container
View concourse-worker-node.fish
#!/usr/bin/fish
docker run \
-it \
--rm \
--privileged \
-p 7777:7777 \
-p 7788:7788 \
-p 8888:8888 \
-v /home/ubuntu/devel/concourse-work-dir:/concourse \
View concourse-docker-compose.yml
version: '3'
services:
concourse-db:
image: postgres
ports: ["5432:5432"]
environment:
POSTGRES_DB: concourse
POSTGRES_USER: concourse_user
POSTGRES_PASSWORD: concourse_pass
@martin-g
martin-g / web-node.fish
Created Jan 20, 2021
Fish shell script to start ConcourseCI web node
View web-node.fish
#!/usr/bin/env fish
set -x CONCOURSE_POSTGRES_HOST localhost
set -x CONCOURSE_POSTGRES_USER concourse_user
set -x CONCOURSE_POSTGRES_PASSWORD concourse_pass
set -x CONCOURSE_POSTGRES_DATABASE concourse
set -x CONCOURSE_EXTERNAL_URL http://web-node:8080
set -x CONCOURSE_X_FRAME_OPTIONS deny
set -x CONCOURSE_ADD_LOCAL_USER user:password
set -x CONCOURSE_MAIN_TEAM_LOCAL_USER user
View build.sh-concourse-arm-worker
./build.sh
+ set -e
+ docker build --build-arg http_proxy --build-arg https_proxy -t registry-image . -f Dockerfile-registry-image
Sending build context to Docker daemon 21.79MB
Step 1/15 : FROM golang:1.14.3-alpine3.11 as builder
---> 6bf3dc21cd79
Step 2/15 : RUN apk add git
---> Using cache
---> f7e0eca88239
Step 3/15 : RUN git clone https://github.com/concourse/registry-image-resource.git /src/registry-image-resource
View http2-graalvm-results.txt
Versions:
- GRAALVM Community Edition 20.2.0 (build 11.0.8+10-jvmci-20.2-b03)
- GRAALVM Enterprice Edition 20.2.1 (build 11.0.9+7-LTS-jvmci-20.2-b05)
- OpenJDK 15 (build 15+36-1562, mixed mode, sharing)
===================================================================================================================
I I Native image CE I OpenJDK 15 I GRAAL_CE_JVM I GRAAL_EE_JVM I Native Image EE I
I----------------I--------------------I--------------------I---------------------I--------------I-----------------I
I I x86_64 | aarch64 I x86_64 | aarch64 I x86_64 | aarch64 I x86_64 I x86_64 I
View graalvm-tomcat-apr-problem.txt
Oct 20, 2020 4:05:54 PM org.apache.catalina.core.AprLifecycleListener init
WARNING: The Apache Tomcat Native library failed to load. The error reported was [Unsupported JNI version 0xffffffff, required by /home/ubuntu/git/apache/tomcat-native-build/lib/libtcnative-1.so.0.2.26]
java.lang.UnsatisfiedLinkError: Unsupported JNI version 0xffffffff, required by /home/ubuntu/git/apache/tomcat-native-build/lib/libtcnative-1.so.0.2.26
at com.oracle.svm.jni.JNILibraryInitializer.checkSupportedJNIVersion(JNILibraryInitializer.java:80)
at com.oracle.svm.jni.JNILibraryInitializer.callOnLoadFunction(JNILibraryInitializer.java:73)
at com.oracle.svm.jni.JNILibraryInitializer.initialize(JNILibraryInitializer.java:127)
at com.oracle.svm.core.jdk.NativeLibrarySupport.addLibrary(NativeLibrarySupport.java:185)
at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibrary0(NativeLibrarySupport.java:141)
at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibrary(NativeLibrarySupport.java:123)
at java.lang.ClassLoader.loadLibr
View native-image-maven-plugin.xml
<plugin>
<groupId>org.graalvm.nativeimage</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>20.2.0</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>