Skip to content

Commit

Permalink
build oci image
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Mar 6, 2024
1 parent ecf3273 commit a649d1c
Show file tree
Hide file tree
Showing 23 changed files with 3,234 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/action-oci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: OCI build

on:
push:
paths:
- 'oci/**'
workflow_dispatch:

jobs:
OCI:
runs-on: ${{ vars.SYSTEM }}
timeout-minutes: ${{ fromJSON(vars.TIMEOUT) }}

steps:
- uses: actions/checkout@v4

- name: Build and push to Docker Hub
uses: ./.github/actions/Docker
with:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
DOCKER_BUILD_NAME: 'oci'
DOCKER_BUILD_PATH: './oci'
12 changes: 12 additions & 0 deletions oci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM composer:latest

COPY . /app
WORKDIR /app
RUN composer install

VOLUME /app/env

RUN chmod 755 /app/entry.sh
RUN /usr/bin/crontab /app/crontab.txt

CMD ["/app/entry.sh"]
21 changes: 21 additions & 0 deletions oci/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Alexander Hitrov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions oci/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "hitrov/oci-arm-host-capacity",
"description": "This script being run as cron job (e.g. every minute) allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.",
"type": "project",
"authors": [
{
"name": "Alexander Hitrov",
"email": "[email protected]"
}
],
"require": {
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3",
"hitrov/oci-api-php-request-sign": "^1.0",
"ext-curl": "*",
"ext-json": "*",
"vlucas/phpdotenv": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
"Hitrov\\":"src/"
}
},
"license": "MIT"
}
Loading

0 comments on commit a649d1c

Please sign in to comment.