Skip to content

Instantly share code, notes, and snippets.

View varpa89's full-sized avatar

Pavel Varchenko varpa89

View GitHub Profile
[Unit]
Description=Fn Server
[Service]
Restart=always
ExecStart=/usr/local/bin/fnserver
[Install]
WantedBy=multi-user.target
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
@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.
#
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_,
select
personids0_.person_guid as person_g1_92_0_,
personids0_.origin_id as origin_i2_98_0_,
personids0_.provider_guid as provider3_0_,
provider1_.guid as guid1_110_1_,
provider1_.createdTs as createdT2_110_1_,
provider1_.updatedTs as updatedT3_110_1_,
provider1_.active as active4_110_1_,
provider1_.all_access as all_acce5_110_1_,
provider1_.apiKey as apiKey6_110_1_,
select
personlink0_.guid as guid1_99_,
personlink0_.createdTs as createdT2_99_,
personlink0_.updatedTs as updatedT3_99_,
personlink0_.provider_guid as provide10_99_,
personlink0_. timestamp as timestam4_99_,
personlink0_.child_guid as child_g11_99_,
personlink0_.link_create_date as link_cre5_99_,
personlink0_.deleted as deleted6_99_,
personlink0_.deleted_by_provider as deleted_7_99_,
select
person0_.guid as guid1_92_,
person0_.createdTs as createdT2_92_,
person0_.updatedTs as updatedT3_92_,
person0_.provider_guid as provide38_92_,
person0_. timestamp as timestam4_92_,
person0_.deleted as deleted5_92_,
person0_.deleted_by_provider as deleted_6_92_,
person0_.adapt_program_needy as adapt_pr7_92_,
person0_.birth_date as birth_da8_92_,
@NamedEntityGraphs({
@NamedEntityGraph(
name = "OdoPetition.xls",
attributeNodes = {
@NamedAttributeNode("document"),
@NamedAttributeNode("organization"),
@NamedAttributeNode(value = "studyProgram", subgraph = "OdoPetition.studyProgram.xls")
},
subgraphs = {
@NamedSubgraph(name = "OdoPetition.studyProgram.xls",
db.keeperhandledfiles.find({name:{$nin:["040ed108-aa3c-4f62-9543-493665085385.xml","405d1d99-007b-4fa6-bc83-63817ffd8ef9.xml","87d2698e-7bc3-4cca-859a-a7fb9e660328.xml","ef7f7505-5dfa-4996-9715-349afc032a86.xml","007b4e10-52fc-4e5f-85ab-80c576e6aafb.xml","00d92039-9d21-4c10-810d-135092cd1afc.xml","00e03c93-7bca-488d-b654-29880d34ff1b.xml","0131c139-af9f-4708-9e65-500bab1d5b36.xml","016d71d4-6f01-4c4b-90f4-67f943d0bf22.xml","020b0b9d-db87-409c-a852-dfc7cb00ef3d.xml","03608107-4966-4acb-9e6a-05870938a444.xml","04414869-231a-4845-ad9b-df8211091862.xml","04b8e648-f15a-4c25-9aee-67ca0c4c9487.xml","059efa17-1f96-4eca-9330-a0e1c09e131d.xml","06ce1ee6-5253-43af-a165-656f0d5094d0.xml","09745f4e-6abb-4417-80da-64329c0442ea.xml","09bb326a-e99c-484a-b5dc-4076fc2e56c0.xml","0aefbfe0-ccc6-4598-8af3-c73e4281b168.xml","0f8daca7-3479-45be-8277-3083a2280bcd.xml","0fd7398c-740a-4d38-bd26-9878ae8e8ddb.xml","10da12ae-95cb-47af-8756-526696dbd986.xml","1195e4f6-780b-4133-ad42-66ed470dcad5.xml","12129ade-c1bd-42f5-8b45-e85b257c5e54.
{
"orgType": {
"name": "OO",
"code": 3,
"title": "ОО",
"management": false
},
"permissions": {
"ADM_SUPER": 1,
"SPO_OO_MY_ORGANIZATION": 3,