Removed generated

This commit is contained in:
frikky
2020-05-11 19:20:27 +02:00
parent f3587ac821
commit 8775fd2c21
28 changed files with 3 additions and 1202 deletions
@@ -1,26 +0,0 @@
# 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
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,26 +0,0 @@
# 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
File diff suppressed because one or more lines are too long
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,29 +0,0 @@
import requests
import asyncio
import json
from walkoff_app_sdk.app_base import AppBase
class Asd37fff3ea5fa10cdde521f21134320c26(AppBase):
"""
Autogenerated class by Shuffler
"""
__version__ = "1.0"
app_name = "Asd37fff3ea5fa10cdde521f21134320c26"
def __init__(self, redis, logger, console_logger=None):
self.verify = False
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
super().__init__(redis, logger, console_logger)
async def get_hello(self, apikey):
headers={}
url=f"https://google.com/lol"
headers["what"] = apikey
return requests.get(url, headers=headers).text
if __name__ == "__main__":
asyncio.run(Asd37fff3ea5fa10cdde521f21134320c26.run(), debug=True)
@@ -1,26 +0,0 @@
# 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
@@ -1,193 +0,0 @@
name: Uber API
is_valid: true
id: 6a707aa0-892b-42a0-b0a4-b10b6b56e6e5
link: https://api.uber.com
app_version: 1.0.0
generated: true
sharing: false
verified: false
tested: false
owner: 2501f368-edf2-4fee-bb7e-457d65d7410c
private_id: 547f1803-edf7-433f-8016-d508ed978f65
description: Move your app forward with the Uber API
environment: cloud
smallimage: ""
large_image: ""
contact_info:
name: ""
url: ""
actions:
- description: The Price Estimates endpoint returns an estimated price range for each
product offered at a given location. The price estimate is provided as a formatted
string with the full price range and the localized currency symbol.<br><br>The
response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)
currency code for situations requiring currency conversion. When surge is active
for a particular product, its surge_multiplier will be greater than 1, but the
price estimate already factors in this multiplier.
name: get_price_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of end location.
name: end_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of end location.
name: end_longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
- description: The Time Estimates endpoint returns ETAs for all products offered at
a given location, with the responses expressed as integers in seconds. We recommend
that this endpoint be called every minute to provide the most accurate, up-to-date
ETAs.
name: get_time_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Unique customer identifier to be used for experience customization.
name: customer_uuid
example: ""
multiline: false
required: false
schema:
type: string
- description: Unique identifier representing a specific product for a given latitude
& longitude.
name: product_id
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Activity endpoint returns data about a user's lifetime activity
with Uber. The response will include pickup locations and times, dropoff locations
and times, the distance of past requests, and information about which products
were requested.<br><br>The history array in the response will have a maximum length
based on the limit parameter. The response value count may exceed limit, therefore
subsequent API requests may be necessary.
name: get_user_activity
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Offset the list of returned results by this amount. Default is zero.
name: offset
example: ""
multiline: false
required: false
schema:
type: string
- description: Number of items to retrieve. Default is 5, maximum is 100.
name: limit
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Profile endpoint returns information about the Uber user that
has authorized with the application.
name: get_user_profile
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters: []
returns:
schema:
type: string
- description: The Products endpoint returns information about the Uber products offered
at a given location. The response includes the display name and other details
about each product, and lists the products in the proper display order.
name: get_product_types
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of location.
name: latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of location.
name: longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
authentication:
required: true
parameters:
- description: ""
id: ""
name: ""
example: ""
value: ""
multiline: false
required: true
in: ""
scheme: ""
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,66 +0,0 @@
import requests
import asyncio
import json
import urllib3
from walkoff_app_sdk.app_base import AppBase
class UberAPI547f1803edf7433f8016d508ed978f65(AppBase):
"""
Autogenerated class by Shuffler
"""
__version__ = "1.0"
app_name = "UberAPI547f1803edf7433f8016d508ed978f65"
def __init__(self, redis, logger, console_logger=None):
self.verify = False
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
super().__init__(redis, logger, console_logger)
async def get_price_estimates(self, start_latitude, start_longitude, end_latitude, end_longitude):
headers={}
url=f"https://api.uber.com/estimates/price?start_latitude={start_latitude}&start_longitude={start_longitude}&end_latitude={end_latitude}&end_longitude={end_longitude}"
return requests.get(url, headers=headers).text
async def get_time_estimates(self, start_latitude, start_longitude, customer_uuid="", product_id="", ):
headers={}
url=f"https://api.uber.com/estimates/time?start_latitude={start_latitude}&start_longitude={start_longitude}"
if customer_uuid:
url += f"&customer_uuid={customer_uuid}"
if product_id:
url += f"&product_id={product_id}"
return requests.get(url, headers=headers).text
async def get_user_activity(self, offset="", limit="", ):
headers={}
url=f"https://api.uber.com/history"
if offset:
url += f"&offset={offset}"
if limit:
url += f"&limit={limit}"
return requests.get(url, headers=headers).text
async def get_user_profile(self):
headers={}
url=f"https://api.uber.com/me"
return requests.get(url, headers=headers).text
async def get_product_types(self, latitude, longitude):
headers={}
url=f"https://api.uber.com/products?latitude={latitude}&longitude={longitude}"
return requests.get(url, headers=headers).text
if __name__ == "__main__":
asyncio.run(UberAPI547f1803edf7433f8016d508ed978f65.run(), debug=True)
@@ -1,26 +0,0 @@
# 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
@@ -1,193 +0,0 @@
name: Uber API
is_valid: true
id: 547f1803-edf7-433f-8016-d508ed978f65
link: https://api.uber.com
app_version: 1.0.0
generated: true
sharing: false
verified: false
tested: false
owner: 2501f368-edf2-4fee-bb7e-457d65d7410c
private_id: 795ed46f-2dbd-43d6-9d0c-1f6b9cce14ea
description: Move your app forward with the Uber API
environment: cloud
smallimage: ""
large_image: ""
contact_info:
name: ""
url: ""
actions:
- description: The Price Estimates endpoint returns an estimated price range for each
product offered at a given location. The price estimate is provided as a formatted
string with the full price range and the localized currency symbol.<br><br>The
response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)
currency code for situations requiring currency conversion. When surge is active
for a particular product, its surge_multiplier will be greater than 1, but the
price estimate already factors in this multiplier.
name: get_price_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of end location.
name: end_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of end location.
name: end_longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
- description: The Time Estimates endpoint returns ETAs for all products offered at
a given location, with the responses expressed as integers in seconds. We recommend
that this endpoint be called every minute to provide the most accurate, up-to-date
ETAs.
name: get_time_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Unique customer identifier to be used for experience customization.
name: customer_uuid
example: ""
multiline: false
required: false
schema:
type: string
- description: Unique identifier representing a specific product for a given latitude
& longitude.
name: product_id
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Activity endpoint returns data about a user's lifetime activity
with Uber. The response will include pickup locations and times, dropoff locations
and times, the distance of past requests, and information about which products
were requested.<br><br>The history array in the response will have a maximum length
based on the limit parameter. The response value count may exceed limit, therefore
subsequent API requests may be necessary.
name: get_user_activity
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Offset the list of returned results by this amount. Default is zero.
name: offset
example: ""
multiline: false
required: false
schema:
type: string
- description: Number of items to retrieve. Default is 5, maximum is 100.
name: limit
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Profile endpoint returns information about the Uber user that
has authorized with the application.
name: get_user_profile
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters: []
returns:
schema:
type: string
- description: The Products endpoint returns information about the Uber products offered
at a given location. The response includes the display name and other details
about each product, and lists the products in the proper display order.
name: get_product_types
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: Latitude component of location.
name: latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of location.
name: longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
authentication:
required: true
parameters:
- description: ""
id: ""
name: ""
example: ""
value: ""
multiline: false
required: true
in: ""
scheme: ""
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,66 +0,0 @@
import requests
import asyncio
import json
import urllib3
from walkoff_app_sdk.app_base import AppBase
class UberAPI795ed46f2dbd43d69d0c1f6b9cce14ea(AppBase):
"""
Autogenerated class by Shuffler
"""
__version__ = "1.0"
app_name = "UberAPI795ed46f2dbd43d69d0c1f6b9cce14ea"
def __init__(self, redis, logger, console_logger=None):
self.verify = False
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
super().__init__(redis, logger, console_logger)
async def get_price_estimates(self, start_latitude, start_longitude, end_latitude, end_longitude):
headers={}
url=f"https://api.uber.com/estimates/price?start_latitude={start_latitude}&start_longitude={start_longitude}&end_latitude={end_latitude}&end_longitude={end_longitude}"
return requests.get(url, headers=headers).text
async def get_time_estimates(self, start_latitude, start_longitude, customer_uuid="", product_id="", ):
headers={}
url=f"https://api.uber.com/estimates/time?start_latitude={start_latitude}&start_longitude={start_longitude}"
if customer_uuid:
url += f"&customer_uuid={customer_uuid}"
if product_id:
url += f"&product_id={product_id}"
return requests.get(url, headers=headers).text
async def get_user_activity(self, offset="", limit="", ):
headers={}
url=f"https://api.uber.com/history"
if offset:
url += f"&offset={offset}"
if limit:
url += f"&limit={limit}"
return requests.get(url, headers=headers).text
async def get_user_profile(self):
headers={}
url=f"https://api.uber.com/me"
return requests.get(url, headers=headers).text
async def get_product_types(self, latitude, longitude):
headers={}
url=f"https://api.uber.com/products?latitude={latitude}&longitude={longitude}"
return requests.get(url, headers=headers).text
if __name__ == "__main__":
asyncio.run(UberAPI795ed46f2dbd43d69d0c1f6b9cce14ea.run(), debug=True)
@@ -1,26 +0,0 @@
# 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
@@ -1,228 +0,0 @@
name: Uber API
is_valid: true
id: 795ed46f-2dbd-43d6-9d0c-1f6b9cce14ea
link: ""
app_version: 1.0.0
generated: true
sharing: false
verified: false
tested: false
owner: 2501f368-edf2-4fee-bb7e-457d65d7410c
private_id: f97a44dd-f1c3-48ae-b46f-ceb19ce3039c
description: Move your app forward with the Uber API
environment: cloud
smallimage: ""
large_image: ""
contact_info:
name: ""
url: ""
actions:
- description: The Time Estimates endpoint returns ETAs for all products offered at
a given location, with the responses expressed as integers in seconds. We recommend
that this endpoint be called every minute to provide the most accurate, up-to-date
ETAs.
name: get_time_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: The URL of the app
name: url
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Unique customer identifier to be used for experience customization.
name: customer_uuid
example: ""
multiline: false
required: false
schema:
type: string
- description: Unique identifier representing a specific product for a given latitude
& longitude.
name: product_id
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Activity endpoint returns data about a user's lifetime activity
with Uber. The response will include pickup locations and times, dropoff locations
and times, the distance of past requests, and information about which products
were requested.<br><br>The history array in the response will have a maximum length
based on the limit parameter. The response value count may exceed limit, therefore
subsequent API requests may be necessary.
name: get_user_activity
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: The URL of the app
name: url
example: ""
multiline: false
required: true
schema:
type: string
- description: Offset the list of returned results by this amount. Default is zero.
name: offset
example: ""
multiline: false
required: false
schema:
type: string
- description: Number of items to retrieve. Default is 5, maximum is 100.
name: limit
example: ""
multiline: false
required: false
schema:
type: string
returns:
schema:
type: string
- description: The User Profile endpoint returns information about the Uber user that
has authorized with the application.
name: get_user_profile
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: The URL of the app
name: url
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
- description: The Products endpoint returns information about the Uber products offered
at a given location. The response includes the display name and other details
about each product, and lists the products in the proper display order.
name: get_product_types
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: The URL of the app
name: url
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of location.
name: latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of location.
name: longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
- description: The Price Estimates endpoint returns an estimated price range for each
product offered at a given location. The price estimate is provided as a formatted
string with the full price range and the localized currency symbol.<br><br>The
response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)
currency code for situations requiring currency conversion. When surge is active
for a particular product, its surge_multiplier will be greater than 1, but the
price estimate already factors in this multiplier.
name: get_price_estimates
nodetype: action
environment: cloud
sharing: false
privateid: ""
appid: ""
tested: false
parameters:
- description: The URL of the app
name: url
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of start location.
name: start_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of start location.
name: start_longitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Latitude component of end location.
name: end_latitude
example: ""
multiline: false
required: true
schema:
type: string
- description: Longitude component of end location.
name: end_longitude
example: ""
multiline: false
required: true
schema:
type: string
returns:
schema:
type: string
authentication:
required: true
parameters:
- description: ""
id: ""
name: ""
example: ""
value: ""
multiline: false
required: true
in: ""
scheme: ""
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,66 +0,0 @@
import requests
import asyncio
import json
import urllib3
from walkoff_app_sdk.app_base import AppBase
class UberAPIf97a44ddf1c348aeb46fceb19ce3039c(AppBase):
"""
Autogenerated class by Shuffler
"""
__version__ = "1.0"
app_name = "UberAPIf97a44ddf1c348aeb46fceb19ce3039c"
def __init__(self, redis, logger, console_logger=None):
self.verify = False
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
super().__init__(redis, logger, console_logger)
async def get_time_estimates(self, baseurl, start_latitude, start_longitude, customer_uuid="", product_id="", ):
headers={}
url=f"{baseurl}/estimates/time?start_latitude={start_latitude}&start_longitude={start_longitude}"
if customer_uuid:
url += f"&customer_uuid={customer_uuid}"
if product_id:
url += f"&product_id={product_id}"
return requests.get(url, headers=headers).text
async def get_user_activity(self, baseurl, offset="", limit="", ):
headers={}
url=f"{baseurl}/history"
if offset:
url += f"&offset={offset}"
if limit:
url += f"&limit={limit}"
return requests.get(url, headers=headers).text
async def get_user_profile(self, baseurl):
headers={}
url=f"{baseurl}/me"
return requests.get(url, headers=headers).text
async def get_product_types(self, baseurl, latitude, longitude):
headers={}
url=f"{baseurl}/products?latitude={latitude}&longitude={longitude}"
return requests.get(url, headers=headers).text
async def get_price_estimates(self, baseurl, start_latitude, start_longitude, end_latitude, end_longitude):
headers={}
url=f"{baseurl}/estimates/price?start_latitude={start_latitude}&start_longitude={start_longitude}&end_latitude={end_latitude}&end_longitude={end_longitude}"
return requests.get(url, headers=headers).text
if __name__ == "__main__":
asyncio.run(UberAPIf97a44ddf1c348aeb46fceb19ce3039c.run(), debug=True)
@@ -1,26 +0,0 @@
# 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
@@ -1,31 +0,0 @@
name: a
is_valid: true
id: 31e2332c-8baa-41e9-98af-c2457d64d946
link: ""
app_version: 1.0.0
generated: true
sharing: false
verified: false
tested: false
owner: c2dbe917-f982-40ed-9045-462872c4ca1e
private_id: 757f74fead843a8d9b5a954d2fadfa69
description: ""
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: ""
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,23 +0,0 @@
import requests
import asyncio
import json
from walkoff_app_sdk.app_base import AppBase
class a757f74fead843a8d9b5a954d2fadfa69(AppBase):
"""
Autogenerated class by Shuffler
"""
__version__ = "1.0"
app_name = "a757f74fead843a8d9b5a954d2fadfa69"
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(a757f74fead843a8d9b5a954d2fadfa69.run(), debug=True)
@@ -1,26 +0,0 @@
# 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
@@ -1,31 +0,0 @@
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: ""
@@ -1,3 +0,0 @@
# No extra requirements needed
requests
urllib3
@@ -1,23 +0,0 @@
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)