Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Old files removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed May 20, 2018
1 parent cfa501e commit 610933d
Show file tree
Hide file tree
Showing 152 changed files with 193 additions and 24,653 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
@@ -0,0 +1,10 @@
# User-specific files
*.suo
*.user
*.vs
*.log

.vs
.git

**/Squidex.Identity/appsettings.Development.json
67 changes: 67 additions & 0 deletions .drone.yml
@@ -0,0 +1,67 @@
clone:
git:
image: plugins/git:next
pull: true

pipeline:
test_pull_request:
image: docker
commands:
- docker build -t squidex/squidex-identity:test_pull_request .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
when:
event: pull_request

build_dev:
image: docker
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker build -t squidex/squidex-identity:dev .
- docker push squidex/squidex-identity:dev
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
secrets: [ docker_username, docker_password ]
when:
event: push
branch: [ master ]

build_release:
image: docker
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker build -t squidex/squidex-identity:latest -t squidex/squidex-identity:$TAG .
- docker push squidex/squidex-identity:latest
- docker push squidex/squidex-identity:$TAG
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
environment:
- TAG=${DRONE_TAG}
secrets: [ docker_username, docker_password ]
when:
event: tag

slack:
image: plugins/slack
template: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
secrets: [ slack_webhook ]
when:
status: [ failure, success ]

cleanup:
image: docker
commands:
- docker system prune -f
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
when:
status: failure
66 changes: 66 additions & 0 deletions .gitattributes
@@ -0,0 +1,66 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

*.sh text eol=lf
*.yml text eol=lf
18 changes: 2 additions & 16 deletions .gitignore
Expand Up @@ -6,19 +6,5 @@

.vscode

# Build results
build/
bin/
obj/
publish/

# Test Output
_test-output/

# NodeJS
node_modules/

# Scripts (should be copied from node_modules on build)
**/wwwroot/scripts/**/*.*

*.Development.json
/Squidex.Identity/appsettings.Development.json
/Squidex.Identity/Properties/launchSettings.json
48 changes: 48 additions & 0 deletions Dockerfile
@@ -0,0 +1,48 @@
#
# Stage 1, Prebuild
#
FROM squidex/aspnetcore-build-phantomjs-chromium:2.0.3-jessie-fix1 as builder

COPY src/Squidex/package.json /tmp/package.json

# Install Node packages
RUN cd /tmp && npm install

COPY . .

WORKDIR /

# Build Frontend
RUN cp -a /tmp/node_modules /src/Squidex/ \
&& cd /src/Squidex \
&& npm run test:coverage \
&& npm run build:copy \
&& npm run build

# Test Backend
RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \
&& dotnet test tests/Squidex.Tests/Squidex.Tests.csproj

# Publish
RUN dotnet publish src/Squidex/Squidex.csproj --output /out/ --configuration Release

#
# Stage 2, Build runtime
#
FROM microsoft/aspnetcore:2.0.3-jessie

# Default AspNetCore directory
WORKDIR /app

# Copy from build stage
COPY --from=builder /out/ .

EXPOSE 80
EXPOSE 33333
EXPOSE 40000

ENTRYPOINT ["dotnet", "Squidex.dll"]
23 changes: 0 additions & 23 deletions csharp/Sample.Blog/Readme.md

This file was deleted.

25 changes: 0 additions & 25 deletions csharp/Sample.Blog/Sample.Blog.sln

This file was deleted.

72 changes: 0 additions & 72 deletions csharp/Sample.Blog/Sample.Blog/Controllers/HomeController.cs

This file was deleted.

0 comments on commit 610933d

Please sign in to comment.