Initial open source commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Base our app image off of the WALKOFF App SDK image
|
||||
FROM frikky/shuffle:app_sdk as base
|
||||
|
||||
# We're going to stage away all of the bloat from the build tools so lets create a builder stage
|
||||
FROM base as builder
|
||||
|
||||
# Install all alpine build tools needed for our pip installs
|
||||
RUN apk --no-cache add --update alpine-sdk libffi libffi-dev musl-dev openssl-dev
|
||||
|
||||
# Install all of our pip packages in a single directory that we can copy to our base image later
|
||||
RUN mkdir /install
|
||||
WORKDIR /install
|
||||
COPY requirements.txt /requirements.txt
|
||||
RUN pip install --prefix="/install" -r /requirements.txt
|
||||
|
||||
# Switch back to our base image and copy in all of our built packages and source code
|
||||
FROM base
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY src /app
|
||||
|
||||
# Install any binary dependencies needed in our final image - this can be a lot of different stuff
|
||||
RUN apk --no-cache add --update libmagic
|
||||
|
||||
# Finally, lets run our app!
|
||||
WORKDIR /app
|
||||
CMD python app.py --log-level DEBUG
|
||||
@@ -0,0 +1,31 @@
|
||||
name: test
|
||||
is_valid: true
|
||||
id: a29d4143-fa3b-4456-86c4-fee2d402ddf6
|
||||
link: https://test.com
|
||||
app_version: 1.0.0
|
||||
generated: true
|
||||
sharing: false
|
||||
verified: false
|
||||
tested: false
|
||||
owner: c2dbe917-f982-40ed-9045-462872c4ca1e
|
||||
private_id: f383aa4f34d36802daf465e2af5f7aa1
|
||||
description: test
|
||||
environment: cloud
|
||||
smallimage: ""
|
||||
large_image: ""
|
||||
contact_info:
|
||||
name: ""
|
||||
url: ""
|
||||
actions: []
|
||||
authentication:
|
||||
required: true
|
||||
parameters:
|
||||
- description: ""
|
||||
id: ""
|
||||
name: ""
|
||||
example: ""
|
||||
value: ""
|
||||
multiline: false
|
||||
required: true
|
||||
in: ""
|
||||
scheme: ""
|
||||
@@ -0,0 +1,3 @@
|
||||
# No extra requirements needed
|
||||
requests
|
||||
urllib3
|
||||
@@ -0,0 +1,23 @@
|
||||
import requests
|
||||
import asyncio
|
||||
import json
|
||||
|
||||
from walkoff_app_sdk.app_base import AppBase
|
||||
|
||||
class testf383aa4f34d36802daf465e2af5f7aa1(AppBase):
|
||||
"""
|
||||
Autogenerated class by Shuffler
|
||||
"""
|
||||
|
||||
__version__ = "1.0"
|
||||
app_name = "testf383aa4f34d36802daf465e2af5f7aa1"
|
||||
|
||||
def __init__(self, redis, logger, console_logger=None):
|
||||
self.verify = False
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
super().__init__(redis, logger, console_logger)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(testf383aa4f34d36802daf465e2af5f7aa1.run(), debug=True)
|
||||
Reference in New Issue
Block a user