Skip to content

Instantly share code, notes, and snippets.

View varpa89's full-sized avatar

Pavel Varchenko varpa89

View GitHub Profile
select
groupmembe0_.guid as guid1_59_,
groupmembe0_.createdTs as createdT2_59_,
groupmembe0_.updatedTs as updatedT3_59_,
groupmembe0_.provider_guid as provide12_59_,
groupmembe0_. timestamp as timestam4_59_,
groupmembe0_.deleted as deleted5_59_,
groupmembe0_.deleted_by_provider as deleted_6_59_,
groupmembe0_.origin_id as origin_i7_59_,
groupmembe0_.end_date as end_date8_59_,
@varpa89
varpa89 / Dockerfile-jdk9-rpi.dockerfile
Last active February 6, 2018 14:01
Dockerfile for Fn Project java runtime
FROM arm32v7/openjdk:9-slim
COPY target/runtime-*.jar target/dependency/*.jar /function/runtime/
# UseCGroupMemoryLimitForHeap looks up /sys/fs/cgroup/memory/memory.limit_in_bytes inside the container to determine
# what the heap should be set to. This is an experimental feature at the moment, thus we need to unlock to use it.
#
# MaxRAMFraction is used modify the heap size and it is used as a denominator where the numerator is phys_mem.
# It seems that this value is a uint in the JVM code, thus can only specify 1 => 100%, 2 => 50%, 3 => 33.3%, 4 => 25%
# and so on.
#
name: {your_dockerhub_account}/hello-fn-rpi
version: 0.0.1
runtime: java9
cmd: com.example.fn.HelloFunction::handleRequest
build_image: arm32v7/maven:3.5-jdk-9-slim
run_image: varpa89/fn-java-fdk-arm32:1.0.56
format: http
[Unit]
Description=Fn Server
[Service]
Restart=always
ExecStart=/usr/local/bin/fnserver
[Install]
WantedBy=multi-user.target