Skip to content

Commit

Permalink
[update]更新register, plugin install
Browse files Browse the repository at this point in the history
  • Loading branch information
comprel committed Jun 11, 2021
1 parent 8b21099 commit 79e0494
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ WORKDIR /app/wecube_plugins_terraform/
COPY . .

RUN mkdir -p /usr/local/share/terraform/plugins && \
tar -zxvf /app/wecube_plugins_terraform/plugins/registry.terraform.io.tar.gz -C /usr/local/share/terraform/plugins && \
rm -rf /app/wecube_plugins_terraform/plugins/registry.terraform.io.tar.gz && \
rm -rf /app/wecube_plugins_terraform/bin/terraform_0.15.5_linux_amd64.zip && \
ls /app/wecube_plugins_terraform/bin && \
\cp /app/wecube_plugins_terraform/bin/terraform /usr/bin/terraform && \
Expand Down
4 changes: 3 additions & 1 deletion register.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<resourceDependencies>
<docker imageName="{{IMAGENAME}}" containerName="{{CONTAINERNAME}}"
portBindings="{{ALLOCATE_PORT}}:8999"
volumeBindings="{{BASE_MOUNT_PATH}}/certs:/data,/etc/localtime:/etc/localtime,{{BASE_MOUNT_PATH}}/terraform/logs:/app/wecube_plugins_terraform/logs,{{BASE_MOUNT_PATH}}/terraform/terraform:/app/wecube_plugins_terraform/terraform,{{BASE_MOUNT_PATH}}/terraform/plugin:/usr/local/share/terraform/plugins/registry.terraform.io"
volumeBindings="{{BASE_MOUNT_PATH}}/certs:/data,/etc/localtime:/etc/localtime,{{BASE_MOUNT_PATH}}/terraform/logs:/app/wecube_plugins_terraform/logs,{{BASE_MOUNT_PATH}}/terraform/terraform:/app/wecube_plugins_terraform/terraform"
envVariables="MYSQL_USERNAME={{DB_USER}},MYSQL_PASSWORD={{DB_PWD}},MYSQL_HOST={{DB_HOST}},MYSQL_PORT={{DB_PORT}},MYSQL_DATABASE={{DB_SCHEMA}},JWT_SIGNING_KEY={{JWT_SIGNING_KEY}},ENCRYPT_SEED={{ENCRYPT_SEED}}"/>
<mysql schema="terraform" initFileName="init.sql"/>
</resourceDependencies>
Expand Down Expand Up @@ -835,6 +835,7 @@
<parameter datatype="string" mappingType="context" required="Y" description="common,[aws Y],[tencentcloud Y],[alicloud Y]">cidr_ip</parameter>
<parameter datatype="string" mappingType="context" required="N" description="common">asset_id</parameter>
<parameter datatype="string" mappingType="context" required="Y" description="common">region_id</parameter>
<parameter datatype="string" mappingType="context" required="Y" description="common">ipaddress_group_id</parameter>
<parameter datatype="string" mappingType="context" required="N" description="common">name</parameter>
<parameter datatype="string" mappingType="context" required="N" description="[aws N]">begin_port</parameter>
<parameter datatype="string" mappingType="context" required="Y" description="common,[aws Y],[tencentcloud Y],[alicloud Y]">security_group_id</parameter>
Expand Down Expand Up @@ -879,6 +880,7 @@
<parameter datatype="string" description="common,[aws N],[alicloud N]">priority</parameter>
<parameter datatype="string" description="common">secret</parameter>
<parameter datatype="string" description="common">provider</parameter>
<parameter datatype="string" description="common, [tencentcloud N]">ipaddress_group_id</parameter>
<parameter datatype="string" description="common,[aws N],[tencentcloud Y],[alicloud Y]">policy</parameter>
<parameter datatype="string" description="common,[aws Y],[tencentcloud N],[alicloud Y]">type</parameter>
<parameter datatype="string" description="common,[aws N]">from_port</parameter>
Expand Down

0 comments on commit 79e0494

Please sign in to comment.