Skip to content

Commit

Permalink
🔙
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryo Arima committed Sep 1, 2024
1 parent 674f5e6 commit b5ae5ad
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ build-deb-local:

build-rpm-local:
./tool/main.sh build-rpm-local

build-container-up:
./tool/main.sh build-container-up
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
2 changes: 1 addition & 1 deletion tool/deb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ryoarima/ubuntu-${ARCH}:latest

WORKDIR /root

COPY . /root/mark1
COPY ./.. /root/mark1

RUN echo "Start"

Expand Down
Empty file removed tool/deb/changelog
Empty file.
6 changes: 6 additions & 0 deletions tool/deb/changelog.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mark1 (${VERSION}) jammy; urgency=medium

* Initial release of mark1.
* Implemented basic functionality.

-- Ryo Arima <ryo.arima.zzz@gmail.com> ${DATETIME}
Empty file removed tool/deb/control
Empty file.
8 changes: 8 additions & 0 deletions tool/deb/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: mark1
Version: ${VERSION}
Section: web
Priority: optional
Architecture: ${ARCH}
Depends: bash (>= 4.0)
Maintainer: Ryo Arima <ryo.arima.zzz@gmail.com>
Description: simple authorization management system
26 changes: 26 additions & 0 deletions tool/deb/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mark1
Source: https://github.com/ryo-arima/mark1

Files: *
Copyright: 2024, Your Name <ryo.arima.zzz@gmail.com>
License: MIT

License: MIT
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.
14 changes: 14 additions & 0 deletions tool/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
deb:
container_name: deb
build:
context: ../.
dockerfile: tool/deb/Dockerfile
command: sleep infinity

rpm:
container_name: rpm
build:
context: ../.
dockerfile: tool/rpm/Dockerfile
command: sleep infinity
5 changes: 5 additions & 0 deletions tool/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ function build(){

function build-deb-local(){
./tool/deb/build.sh run_on_local_container
date "+%a, %d %b %Y %H:%M:%S +0900" --date="2024-09-01 12:00:00"
}

function build-rpm-local(){
./tool/rpm/build.sh run_on_local_container
}

function build-container-up(){
docker-compose -f ./tool/docker-compose.yaml up --build --force-recreate -d
}

$COMMAND
2 changes: 1 addition & 1 deletion tool/rpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ryoarima/rocky-${ARCH}:latest

WORKDIR /root

COPY . /root/mark1
COPY ./.. /root/mark1

RUN echo "Start"

Expand Down

0 comments on commit b5ae5ad

Please sign in to comment.