Skip to content

Commit

Permalink
Reset files to closest develop version I could find
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeilmeier committed Jan 7, 2022
1 parent bb9cacf commit 811468c
Show file tree
Hide file tree
Showing 75 changed files with 21,632 additions and 395 deletions.
75 changes: 75 additions & 0 deletions .gitattributes
@@ -0,0 +1,75 @@
# Text files with LF eol
*.auth text eol=lf
*.awk text eol=lf
*.bnd text eol=lf
*.bndrun text eol=lf
*.c text eol=lf
*.conf text eol=lf
*.cpp text eol=lf
*.css text eol=lf diff=css
*.ddf text eol=lf
*.ee text eol=lf
*.gradle text eol=lf
*.groovy text eol=lf
*.h text eol=lf
*.html text eol=lf diff=html
*.java text eol=lf
*.js text eol=lf diff=javascript
*.lib text eol=lf
*.md text eol=lf
*.MF text eol=lf
*.mf text eol=lf
*.perm text eol=lf
*.php text eol=lf
*.pl text eol=lf
*.pom text eol=lf
*.prefs text eol=lf
*.properties text eol=lf
*.py text eol=lf
*.schema text eol=lf
*.SF text eol=lf
*.sh text eol=lf
*.tcl text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.xsd text eol=lf
*.xsl text eol=lf
*.xslt text eol=lf
*.yml text eol=lf
.classpath text eol=lf diff=xml
.project text eol=lf diff=xml
gradlew text eol=lf
packageinfo text eol=lf
Makefile text eol=lf
README text eol=lf
LICENSE text eol=lf

# Windows
.bat text eol=crlf

# Binary. No EOL translation, no diff
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.crt binary
*.pdf binary
*.dll binary
*.jar binary
*.jnilib binary
*.so binary
*.zip binary
*.doc binary
*.ppt binary
*.xls binary
*.odg binary
*.odp binary
*.ods binary
*.odt binary
*.otg binary
*.otp binary
*.ots binary
*.ott binary
*.key binary
*.numbers binary
*.pages binary
231 changes: 231 additions & 0 deletions .gitignore
@@ -0,0 +1,231 @@
# Created by https://www.gitignore.io/api/java,maven,gradle,angular,eclipse,node

### Angular ###
## Angular ##
# compiled output
/dist
/tmp
/app/**/*.js
/app/**/*.js.map

# dependencies
/node_modules
/bower_components

# IntelliJ IDEA files and metadata
/.idea
*.iml
*.eml

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

#System Files
.DS_Store
.gradle/
/generated/

### Eclipse ###

.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

### Eclipse Patch ###
# Eclipse Core
#.project

# JDT-specific (Eclipse Java Development Tools)
#.classpath

# Annotation Processing
.apt_generated

### Java ###
# Compiled class file
*.class

# Log file
*.log
# do not ignore directories ending in 'log'
!*.log/

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar

### Node ###
# Logs
logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

### Gradle ###
.gradle
**/build/
# do not ignore '/doc/build' directory
!*doc/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties


# End of https://www.gitignore.io/api/java,maven,gradle,angular,eclipse,node

# docs
/doc/build/package-lock.json

# tools (docker) build Directories
/tools/docker/openems-backend/build
/tools/docker/openems-edge/build
/tools/docker/openems-ui/build
.atom-build.yml

# OpenEMS temp files
io.openems.edge.controller.api.mqtt/edge0
io.openems.edge.application/c:/
28 changes: 28 additions & 0 deletions .gitpod.Dockerfile
@@ -0,0 +1,28 @@
FROM gitpod/workspace-postgres

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 11.0.13-tem"

# disable angular analytics
ENV NG_CLI_ANALYTICS=false

# Docker build does not rebuild an image when a base image is changed, increase this counter to trigger it.
ENV TRIGGER_REBUILD 4

RUN npm install -g @angular/cli

# Install odoo
ENV ODOO_VERSION 12.0
ENV ODOO_RELEASE latest
RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
&& sudo apt-get update \
&& sudo apt-get -y install --no-install-recommends ./odoo.deb \
&& sudo rm -rf /var/lib/apt/lists/* odoo.deb

# Install wkhtmltopdf
ENV WKHTMLTOPDF_VERSION 0.12.6-1
ENV WKHTMLTOPDF_RELEASE focal_amd64
RUN curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_${WKHTMLTOPDF_VERSION}.${WKHTMLTOPDF_RELEASE}.deb \
&& sudo apt-get update \
&& sudo apt-get install -y ./wkhtmltox.deb \
&& sudo rm -rf /var/lib/apt/lists/* wkhtmltox.deb
59 changes: 59 additions & 0 deletions .gitpod.yml
@@ -0,0 +1,59 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: |
touch /tmp/.gradle-lock
./gradlew build buildBackend -x test
rm /tmp/.gradle-lock
command: java
-Dfelix.cm.dir=$(pwd)/tools/docker/openems-backend/config.d
-jar build/openems-backend.jar
- init: |
sleep 10 && while [ -f /tmp/.gradle-lock ]; do sleep 1; done
./gradlew build buildEdge -x test
command: java
-Dfelix.cm.dir=$(pwd)/tools/docker/openems-edge/config.d
-Dopenems.data.dir=$(pwd)/tools/docker/openems-edge/data
-jar build/openems-edge.jar
- init: cd ui && npm install
command: ng serve
-c openems-gitpod
--host 0.0.0.0
--disable-host-check
- init: |
mkdir /workspace/odoo && cd /workspace/odoo
git clone --depth=1 -b feature/gitpod https://github.com/OpenEMS/odoo-openems.git openems
git clone --depth=1 -b 12.0 https://github.com/OCA/partner-contact
git clone --depth=1 -b 12.0 https://github.com/OCA/web.git
ln -s ./partner-contact/partner_firstname ./partner_firstname
ln -s ./web/web_m2x_options ./web_m2x_options
command: odoo -d v12 --addons-path=/workspace/odoo -i base,partner_firstname,web_m2x_options,stock,openems
ports:
# Backend
- port: 8075 # Backend-to-Backend JSON/REST Api
onOpen: ignore
- port: 8076 # Backend-to-Backend JSON/Websocket Api
onOpen: ignore
- port: 8079 # Apache Felix Web Console
onOpen: ignore
- port: 8081 # Edge-Websocket
onOpen: ignore
- port: 8082 # UI-Websocket
onOpen: ignore
# Edge
- port: 8080 # Apache Felix Web Console
onOpen: ignore
- port: 8084 # JSON/REST Api
onOpen: ignore
- port: 8085 # JSON/Websocket Api
onOpen: ignore
# UI
- port: 4200
onOpen: open-browser
# Odoo
- port: 8069
onOpen: open-browser
- port: 5432
onOpen: ignore

0 comments on commit 811468c

Please sign in to comment.