Skip to content

Commit 2bd193f

Browse files
author
Chris Wiechmann
committed
Initial version to create Manager Image
1 parent 2beb4d4 commit 2bd193f

24 files changed

+35099
-0
lines changed

Diff for: .github/workflows/gateway.apimgr.deploy.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy API-Manager
2+
3+
env:
4+
dockerRegistry: docker-registry.demo.axway.com
5+
baseImage: "other-demo/base:77-20210330"
6+
outImage: other-demo/manager:77-20210330-rbi"
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- gateway-config/apimgr/**
14+
release:
15+
types:
16+
- published
17+
18+
defaults:
19+
run:
20+
working-directory: gateway-config
21+
22+
jobs:
23+
create-apimr-docker-image:
24+
if: "!contains(github.event.head_commit.message, 'skip ci')"
25+
name: Create & Push APIMGR Image
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: hmarr/debug-action@v2
29+
- name: Check out the repo
30+
uses: actions/checkout@v2
31+
- name: Log in to GitHub Docker Registry
32+
uses: docker/login-action@v1
33+
with:
34+
registry: docker-registry.demo.axway.com
35+
username: ${{ secrets.AXWAY_DOCKER_REG_USER }}
36+
password: ${{ secrets.AXWAY_DOCKER_REG_PASS }}
37+
- name: Pull base image
38+
run: docker pull ${{ env.dockerRegistry }}/${{ env.baseImage }}
39+
- name: Create image tag
40+
run: echo "IMAGE_TAG=$(echo $GITHUB_SHA | head -c7)" >> $GITHUB_ENV
41+
- name: Build image
42+
run: |
43+
tar xvfz APIGateway_7.7.20210330-DockerScripts-2.2.0-2.tar.gz
44+
echo "${{ secrets.APIGATEWAY_LICENSE }}" | base64 -d > license.lic
45+
./apigw-emt-scripts-2.2.0-2/build_gw_image.py --license=license.lic --default-cert --fed=apimgr/fed --out-image=${{ env.dockerRegistry }}/${{ env.outImage }}
46+
- name: Push image
47+
run: |
48+
docker push ${{ env.dockerRegistry }}/${{ env.outImage }}
49+
- name: Configure AWS credentials
50+
uses: aws-actions/configure-aws-credentials@v1
51+
with:
52+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54+
aws-region: eu-west-1
55+
- name: Deploy to Kubernetes
56+
run: |
57+
mkdir $HOME/.kube
58+
echo "${{ secrets.KUBE_CONFIG_DATA }}" | base64 -d > $HOME/.kube/config
59+
kubectl apply -n apim -f config/api-deployment.yaml
60+
- name: Verify deployment
61+
run: kubectl -n apim rollout status deployment/${{ env.apiId }}
Binary file not shown.

Diff for: gateway-config/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Build a new Base-Image
2+
3+
```
4+
tar xvfz APIGateway_7.7.20210330-DockerScripts-2.2.0-2.tar.gz
5+
cd apigw-emt-scripts-2.2.0-2
6+
./build_base_image.py --installer $HOME/APIGateway_7.7.20210330_Install_linux-x86-64_BN06.run --os centos7 --out-image docker-registry.demo.axway.com/other-demo/base:77-20210330
7+
docker login docker-registry.demo.axway.com
8+
docker push docker-registry.demo.axway.com/other-demo/base:77-20210330
9+
```

Diff for: gateway-config/apimgr/fed/.project

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>rbi-demo-apimanager-20210306</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
21f7fe744d3d6246a1db2b0965a15ebe

Diff for: gateway-config/apimgr/fed/CertStore-2d95fbb5-ab97-43e5-8c9f-e7598be14370.xml

+901
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
817a9077bb76be47b8e3878ad1c7f1c4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<entityStoreData xmlns="http://www.vordel.com/2005/06/24/entityStore">
2+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" abstract="true" extends="Entity" name="RootChild"/>
3+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="RootChild" name="ESConfiguration">
4+
<constant name="_version" type="integer" value="36"/>
5+
<!--
6+
Give this singleton a key.
7+
-->
8+
<field isKey="true" name="name" type="string"/>
9+
<!--
10+
We use this field to verify that the passphrase for the
11+
encryped data is synchronized between the server and client, and
12+
between multiple invocations of the client
13+
-->
14+
<field name="passphraseTest" type="encrypted"/>
15+
<field name="version" type="string"/>
16+
<!-- The product key should never change for the lifetime of the product -->
17+
<field name="productKey" type="string"/>
18+
<field cardinality="?" name="gitrev" type="string"/>
19+
<!--
20+
This field contains the typerepo version used to create an EntityStore config.
21+
-->
22+
<field cardinality="1" name="typerepoVersion" type="string"/>
23+
</entityType>
24+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" abstract="true" extends="RootChild" name="NamedTopLevelGroup">
25+
<constant name="_version" type="integer" value="0"/>
26+
<field isKey="true" name="name" type="string"/>
27+
</entityType>
28+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="NamedTopLevelGroup" name="EnvironmentalizedEntities">
29+
<constant name="_version" type="integer" value="0"/>
30+
<componentType cardinality="*" name="EnvironmentalizedEntity"/>
31+
</entityType>
32+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" abstract="true" extends="Entity" name="EnvironmentalizedField">
33+
<constant name="_version" type="integer" value="1"/>
34+
<field cardinality="1" isKey="true" name="entityFieldName" type="string"/>
35+
<field cardinality="1" default="0" isKey="true" name="index" type="integer"/>
36+
<field name="displayName" type="string"/>
37+
</entityType>
38+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldInteger">
39+
<constant name="_version" type="integer" value="0"/>
40+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldInteger"/>
41+
<field cardinality="?" name="value" type="integer"/>
42+
</entityType>
43+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldLong">
44+
<constant name="_version" type="integer" value="0"/>
45+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldLong"/>
46+
<field cardinality="?" name="value" type="long"/>
47+
</entityType>
48+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldBoolean">
49+
<constant name="_version" type="integer" value="0"/>
50+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldBoolean"/>
51+
<field cardinality="?" name="value" type="boolean"/>
52+
</entityType>
53+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldString">
54+
<constant name="_version" type="integer" value="1"/>
55+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldString"/>
56+
<field cardinality="?" name="value" type="string"/>
57+
<field default="0" name="multiline" type="boolean"/>
58+
</entityType>
59+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldBinary">
60+
<constant name="_version" type="integer" value="0"/>
61+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldBinary"/>
62+
<field cardinality="?" name="value" type="binary"/>
63+
</entityType>
64+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldEncrypted">
65+
<constant name="_version" type="integer" value="0"/>
66+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldEncrypted"/>
67+
<field cardinality="?" name="value" type="encrypted"/>
68+
</entityType>
69+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="EnvironmentalizedField" name="EnvironmentalizedFieldReference">
70+
<constant name="_version" type="integer" value="1"/>
71+
<constant name="class" type="string" value="com.vordel.api.deployment.model.EnvironmentalizedFieldReference"/>
72+
<field cardinality="?" name="value" type="^Entity"/>
73+
<field name="selectorAttributeType" type="string"/>
74+
<field name="selectorSearch" type="string"/>
75+
<field name="selectorType" type="string"/>
76+
</entityType>
77+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="Entity" name="EnvironmentalizedEntity">
78+
<constant name="_version" type="integer" value="0"/>
79+
<componentType cardinality="+" name="EnvironmentalizedField"/>
80+
<field isKey="true" name="entityPk" type="^Entity"/>
81+
</entityType>
82+
<entityType xmlns="http://www.vordel.com/2005/06/24/entityStore" extends="Entity" name="Root">
83+
<componentType cardinality="*" name="RootChild"/>
84+
<field isKey="true" name="name" type="string"/>
85+
86+
<!-- Used by the FileStore implementation, records the last time the store was written -->
87+
<field name="lastModificationTime" type="utctime"/>
88+
89+
<!-- Used by the in-memory ad filestore implementations, records the next integer to use as a PK -->
90+
<field name="pkInc" type="integer"/>
91+
92+
<!--
93+
Provide a user-extensible means to tag an individual store, that won't interfere with federated store
94+
composition. If it's done in the root node, then there are no synchronization issues across stores in the
95+
federated context, as each store naturally has full control of its root node, with only the Primary Store's
96+
root being visible via the federated view.
97+
98+
Provide a pair of multivalued string fields. It is up to the user to ensure that the contents are
99+
synchronized. One string list acts as the key, with the entry in the corresponding list at the same index giving
100+
the value for that key, e.g.
101+
102+
tagName[0] = 'gitrev'
103+
tagName[0] = 'e39a0a77b92c5b82e5a662a7de0b33daeadfb170'
104+
105+
equates to the mapping 'gitrev' -> 'e39a0a77b92c5b82e5a662a7de0b33daeadfb170'
106+
-->
107+
<field cardinality="*" name="tagName" type="string"/>
108+
<field cardinality="*" name="tagValue" type="string"/>
109+
</entityType>
110+
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="Root" entityPK="0">
111+
<fval name="name"><value>System Components</value></fval>
112+
</entity>
113+
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="EnvironmentalizedEntities" entityPK="-3739266031986574350" parentPK="0">
114+
<fval name="name"><value>Environmentalized Entities Metadata</value></fval>
115+
</entity>
116+
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="ESConfiguration" entityPK="2442232753539219555" parentPK="0">
117+
<fval name="name"><value>Entity Store Configuration</value></fval>
118+
<fval name="passphraseTest"><value>aHR0cDsvL3d3dy52b3JkZWwuY29t</value></fval>
119+
<fval name="productKey"><value>VordelGateway</value></fval>
120+
<fval name="typerepoVersion"><value>1.36.6</value></fval>
121+
<fval name="version"><value>7.7.0</value></fval>
122+
</entity>
123+
</entityStoreData>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ab899049090303384d268e2006a36c33

0 commit comments

Comments
 (0)