Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Apr 2, 2024
1 parent c25d5a5 commit b5dfc87
Show file tree
Hide file tree
Showing 27 changed files with 15,800 additions and 19 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Athena <sup>![Java Version Badge][Java Version Badge]</sup>
===========================================================

> My sincere thanks to [yahoo/fili] & [yahoo/elide], which gave tremendous amount of guidance on design and development
> of [Athena], and to my former employer, Yahoo, who taught me to love software engineering and fundamentally
> influenced my tech career
[![GitHub Workflow Status][GitHub Workflow Status badge]][GitHub Workflow Status URL]
![[GitHub Last Commit]][GitHub Last Commit badge]
[![Discord][Discord badge]][Discord URL]
Expand Down Expand Up @@ -92,12 +88,6 @@ License

The use and distribution terms for [Athena] are covered by the [Apache License, Version 2.0].

<div align="center">
<a href="https://opensource.org/licenses">
<img align="center" width="50%" alt="License Illustration" src="https://github.com/QubitPi/QubitPi/blob/master/img/apache-2.png?raw=true">
</a>
</div>

[Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html
[Athena]: https://athena.qubitpi.org/
[Athena Documentation]: https://qubitpi.github.io/athena/doc-index.html
Expand Down
2 changes: 1 addition & 1 deletion athena-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-parent-pom</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
</parent>

<artifactId>athena-core</artifactId>
Expand Down
23 changes: 23 additions & 0 deletions athena-examples/athena-example-books/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright Jiaqi Liu
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM jetty:jdk17

LABEL maintainer="Jiaqi (Jack) Liu"
LABEL maintainer-email="jack20220723@gmail.com"

ARG ATHENA_VERSION=0.0.3

ENV JETTY_WEBAPPS_DIR /var/lib/jetty/webapps

COPY ./target/athena-example-books-$ATHENA_VERSION.war $JETTY_WEBAPPS_DIR/ROOT.war
34 changes: 34 additions & 0 deletions athena-examples/athena-example-books/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright Jiaqi Liu
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "3.9"
services:
web:
build: .
ports:
- "80:8080"
depends_on:
db:
condition: service_healthy
db:
image: "mysql:5.7"
ports:
- "3305:3306"
volumes:
- "./mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql"
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: mysqladmin ping -h localhost -u root -proot
timeout: 3s
retries: 3
29 changes: 29 additions & 0 deletions athena-examples/athena-example-books/mysql-init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-- Copyright Jiaqi Liu
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

CREATE DATABASE IF NOT EXISTS Athena;
USE Athena;

CREATE TABLE BOOK_META_DATA (
id int NOT NULL AUTO_INCREMENT,
file_id VARCHAR(255) NOT NULL,
file_name VARCHAR(255) NOT NULL,
file_type VARCHAR(8) NOT NULL,
PRIMARY KEY (id)
);

-- Predefined test data
INSERT INTO BOOK_META_DATA (file_id, file_name, file_type) VALUES ('1', 'Harry Potter', 'PDF');
INSERT INTO BOOK_META_DATA (file_id, file_name, file_type) VALUES ('2', 'Moby Dick', 'PDF');
INSERT INTO BOOK_META_DATA (file_id, file_name, file_type) VALUES ('3', 'Interview with the vampire', 'PDF');
82 changes: 82 additions & 0 deletions athena-examples/athena-example-books/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-examples</artifactId>
<version>0.0.3</version>
</parent>

<artifactId>athena-example-books</artifactId>
<packaging>war</packaging>
<name>Athena: Example Application - Books</name>
<description>
Athena Books Example serves as a standalone app using core Athena services to stand in front any Swift setup and
automatically configure
</description>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-core</artifactId>
</dependency>
<dependency>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-core</artifactId>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-filestore-swift</artifactId>
</dependency>
<dependency>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-metastore-graphql</artifactId>
</dependency>

<!-- Apache Commons -->
<dependency> <!-- Prefer DBCP over JDBI since lookup should provide low-level speed operations -->
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>

<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${version.maven.war.plugin}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit b5dfc87

Please sign in to comment.