azure-storage-sdk-wrapper-for-scala-model


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

com.github.janjaali
ArtifactId

ArtifactId

azure-storage-sdk-wrapper-for-scala-model_2.13
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

azure-storage-sdk-wrapper-for-scala-model
azure-storage-sdk-wrapper-for-scala-model
Project URL

Project URL

https://github.com/janjaali/azure-storage-cdn-mock
Project Organization

Project Organization

com.github.janjaali
Source Code Management

Source Code Management

https://github.com/janjaali/azure-storage-cdn-mock

Download azure-storage-sdk-wrapper-for-scala-model_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.janjaali/azure-storage-sdk-wrapper-for-scala-model_2.13/ -->
<dependency>
    <groupId>com.github.janjaali</groupId>
    <artifactId>azure-storage-sdk-wrapper-for-scala-model_2.13</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.janjaali/azure-storage-sdk-wrapper-for-scala-model_2.13/
implementation 'com.github.janjaali:azure-storage-sdk-wrapper-for-scala-model_2.13:0.1.0'
// https://jarcasting.com/artifacts/com.github.janjaali/azure-storage-sdk-wrapper-for-scala-model_2.13/
implementation ("com.github.janjaali:azure-storage-sdk-wrapper-for-scala-model_2.13:0.1.0")
'com.github.janjaali:azure-storage-sdk-wrapper-for-scala-model_2.13:jar:0.1.0'
<dependency org="com.github.janjaali" name="azure-storage-sdk-wrapper-for-scala-model_2.13" rev="0.1.0">
  <artifact name="azure-storage-sdk-wrapper-for-scala-model_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.janjaali', module='azure-storage-sdk-wrapper-for-scala-model_2.13', version='0.1.0')
)
libraryDependencies += "com.github.janjaali" % "azure-storage-sdk-wrapper-for-scala-model_2.13" % "0.1.0"
[com.github.janjaali/azure-storage-sdk-wrapper-for-scala-model_2.13 "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1

Project Modules

There are no modules declared in this project.

azure-storage-cdn-mock

Simple service which mocks a CDN service against Azure Storage. This may be useful for development purposes where services download content from Azure Storage via a CDN (e.g. Azure CDN).

The service provides a dynamic route matcher which accepts requests in the form of http://azure-storage-cdn-mock:8080/{container-name}/{blob-path}. These requests will be forwarded to the configured Azure Storage based upon the provided container-name and blob-path.

You may start the dockerized service via:

docker run -p "8080:8080" -it ghashange/azure-storage-cdn-mock:0.1.0-SNAPSHOT

To CDN mock service can be configured with the following environment variables:

  • AZURE_STORAGE_ENDPOINT

  • AZURE_STORAGE_ACCOUNT_NAME

  • AZURE_STORAGE_ACCOUNT_KEY

Development

Run the main application

sbt "app/run"

Create executables

This project uses sbt-native-packager to create executables.

Application

To create an executable script which launches the main application you can command sbt to create a staged application via:

sbt "app/stage"

This will bundle and create the executable script to launch the application in .\app\target\universal\stage. The script is executable via

.\app\target\universal\stage\bin\app.bat

Dockerized

To create a docker image that contains the main application, you can use the sbt command:

sbt "app/docker:publishLocal"

This will build and publish an image called "ghashange/azure-storage-cdn-mock:0.1.0". You can run the image via:

docker run -p "8080:8080" -it ghashange/azure-storage-cdn-mock:0.1.0

Test

sbt test

Versions

Version
0.1.0