This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
194 changed files
with
10,482 additions
and
1,940 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
#FROM azul/zulu-openjdk:8 | ||
FROM anapsix/alpine-java | ||
FROM openjdk:8-jdk-alpine | ||
MAINTAINER hurence <[email protected]>, http://www.hurence.com | ||
|
||
VOLUME /tmp | ||
|
||
# Update Ubuntu | ||
#RUN \ | ||
# bash -c 'apt-get -qq update && apt-get -y upgrade && apt-get -y autoclean && apt-get -y autoremove' && \ | ||
# bash -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget tar' | ||
ARG JAR_FILE | ||
COPY ${JAR_FILE} app.jar | ||
|
||
RUN apk add --update unzip wget curl docker jq coreutils procps vim tar | ||
|
||
ENV APP_JAR historian-backend-1.0.0.jar | ||
ENV USER_NAME logisland | ||
ENV APP_HOME /opt/$USER_NAME | ||
|
||
#RUN \ | ||
# useradd -ms /bin/bash $USER_NAME && \ | ||
# mkdir -p $APP_HOME | ||
RUN mkdir -p $APP_HOME | ||
|
||
ADD ${APP_JAR} ${APP_HOME}/${APP_JAR} | ||
#RUN \ | ||
# chown $USER_NAME $APP_HOME/${APP_JAR} && \ | ||
RUN bash -c 'touch ${APP_HOME}/${APP_JAR}' | ||
|
||
RUN ls ${APP_HOME}/${APP_JAR} | ||
|
||
ENV JAVA_TOOL_OPTIONS "-Xms1G -Xmx1G -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom" | ||
|
||
#USER $USER_NAME | ||
WORKDIR $APP_HOME | ||
ENTRYPOINT ["java", "-jar", "historian-backend-1.0.0.jar"] | ||
|
||
# Run as: | ||
# docker run -idt -p 8701:8701 -e appPort=8701 asimio/springboot-jersey-swagger-docker:latest | ||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
historian/backend/src/main/java/com/hurence/logisland/historian/package-info.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...end/src/main/java/com/hurence/logisland/historian/repository/SolrDashboardRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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. | ||
*/ | ||
package com.hurence.logisland.historian.repository; | ||
|
||
import com.hurence.logisland.historian.rest.v1.model.dashboard.DashboardJson; | ||
import org.springframework.data.solr.repository.Query; | ||
import org.springframework.data.solr.repository.SolrCrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface SolrDashboardRepository extends SolrCrudRepository<DashboardJson, String> { | ||
|
||
@Query(value = "*:*", filters = { "owner:\"?0\"" }) | ||
List<DashboardJson> findByOwner(String owner); | ||
|
||
@Query(value = "*:*", filters = { "name:\"?0\" AND owner:\"?1\"" }) | ||
Optional<DashboardJson> findByNameAndOwner(String name, String owner); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.