-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β fix link to fav icon β fix deletion of reservation for list owner π οΈ Major refactoring to implement separation of concerns
- Loading branch information
Showing
446 changed files
with
35,453 additions
and
17,599 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.env* | ||
Wishlist.xcodeproj | ||
update.rb | ||
update.sh | ||
~nginx | ||
.DS_Store | ||
.dockerignore | ||
.git | ||
.gitignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
version=$1 | ||
|
||
if [[ ! -d "./Wishlist.xcodeproj" ]] ; then | ||
echo "Script must be run in project directory"; exit 1 | ||
fi | ||
if [[ ! $version =~ ^[0-9]+(\.[0-9]+){2,2}(\-RC[0-9]+){0,1}$ ]]; | ||
then | ||
echo "Script must be run with version number as argument"; exit 1 | ||
fi | ||
|
||
echo " #### Building Docker image for project Wishlist with version $version" | ||
|
||
docker build -f Docker/docker.test -t "wishlist:$version-test" . | ||
|
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,22 +1,24 @@ | ||
FROM swift:4.2.4 AS builder | ||
FROM swift:5.1.3 AS builder | ||
RUN apt-get -qq update && apt-get -q -y install \ | ||
openssl libssl-dev zlib1g-dev tzdata \ | ||
&& rm -r /var/lib/apt/lists/* | ||
WORKDIR /app | ||
COPY . . | ||
RUN mkdir -p /build/lib && cp -R /usr/lib/swift/linux/*.so /build/lib | ||
RUN mkdir -p /build/lib && cp -R /usr/lib/swift/linux/lib* /build/lib | ||
RUN swift build -Xswiftc -suppress-warnings --product "Wishlist" -c release && mv `swift build -c release --show-bin-path` /build/bin | ||
|
||
FROM ubuntu:16.04 | ||
FROM ubuntu:18.04 | ||
RUN apt-get -qq update && apt-get install -y \ | ||
libicu55 libxml2 libbsd0 libcurl3 libatomic1 openssl libssl-dev \ | ||
libicu60 libxml2 libbsd0 libcurl4 libatomic1 openssl libssl-dev \ | ||
tzdata \ | ||
&& rm -r /var/lib/apt/lists/* | ||
WORKDIR /app | ||
COPY --from=builder /build/bin/Wishlist . | ||
COPY --from=builder /build/lib/* /usr/lib/ | ||
COPY --from=builder /app/Public ./Public | ||
COPY --from=builder /app/Resources ./Resources | ||
EXPOSE 12345 | ||
RUN groupadd -g 999 appuser && useradd -r -u 999 -g appuser appuser | ||
RUN mkdir ./Public-Images && chown -R appuser:appuser ./Public && chown -R appuser:appuser ./Public-Images && chown -R appuser:appuser ./Resources | ||
USER appuser | ||
ENTRYPOINT ["./Wishlist", "serve", "--hostname", "0.0.0.0", "--port", "12345"] | ||
|
||
EXPOSE 12345 |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: "3.3" | ||
services: | ||
app-test: | ||
container_name: wishlist-app-test | ||
image: "wishlist:${APPVERSION}-test" | ||
environment: | ||
SITE_URL: "http://localhost:8080" | ||
SITE_RELEASE: "beta" | ||
SITE_ACCESS: "all" | ||
DBHOST: "${DBHOST}" | ||
DBPORT: "${DBPORT}" | ||
DBNAME: "${DBNAME}" | ||
DBUSERNAME: "${DBUSERNAME}" | ||
DBPASSWORD: "${DBPASSWORD}" | ||
GOOGLE_CLIENT_ID: "${GOOGLE_CLIENT_ID}" | ||
GOOGLE_CLIENT_SECRET: "${GOOGLE_CLIENT_SECRET}" | ||
NETID_CLIENT_ID: "${NETID_CLIENT_ID}" | ||
NETID_CLIENT_SECRET: "${NETID_CLIENT_SECRET}" | ||
CLOUDIMG_TOKEN: "${CLOUDIMG_TOKEN}" | ||
EMAIL_SMTP_HOSTNAME: "${EMAIL_SMTP_HOSTNAME}" | ||
EMAIL_SMTP_USERNAME: "${EMAIL_SMTP_USERNAME}" | ||
EMAIL_SMTP_PASSWORD: "${EMAIL_SMTP_PASSWORD}" | ||
EMAIL_SENDER_ADDRESS: "${EMAIL_SENDER_ADDRESS}" | ||
EMAIL_SENDER_NAME: "${EMAIL_SENDER_NAME}" | ||
PUSHOVER_APPLICATION_TOKEN: "${PUSHOVER_APPLICATION_TOKEN}" | ||
DEVELOPMENT_LOG_LEVEL: "${DEVELOPMENT_LOG_LEVEL}" | ||
RELEASE_LOG_LEVEL: "${RELEASE_LOG_LEVEL}" | ||
links: | ||
- db-test | ||
depends_on: | ||
- db-test | ||
networks: | ||
- web-test | ||
db-test: | ||
container_name: wishlist-db-test | ||
image: mysql:5 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: wishlist | ||
MYSQL_USER: wishlist | ||
MYSQL_PASSWORD: wishlist | ||
MYSQL_DATABASE: wishlist | ||
networks: | ||
- web-test | ||
networks: | ||
web-test: |
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,10 @@ | ||
FROM swift:5.1.3 | ||
RUN apt-get -qq update && apt-get -q -y install \ | ||
openssl libssl-dev zlib1g-dev tzdata \ | ||
&& rm -r /var/lib/apt/lists/* | ||
WORKDIR /app | ||
COPY . . | ||
RUN mkdir -p /build/lib && cp -R /usr/lib/swift/linux/lib* /build/lib | ||
RUN swift package resolve | ||
RUN swift package clean | ||
CMD ["swift", "test"] |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
version=$1 | ||
|
||
if [[ ! -d "./Wishlist.xcodeproj" ]] ; then | ||
echo "Script must be run in project directory"; exit 1 | ||
fi | ||
if [[ ! $version =~ ^[0-9]+(\.[0-9]+){2,2}(\-RC[0-9]+){0,1}$ ]]; | ||
then | ||
echo "Script must be run with version number as argument"; exit 1 | ||
fi | ||
|
||
echo " #### Running Docker Compose for project Wishlist with version $version" | ||
|
||
APPVERSION=$version DBHOST=db-test docker-compose -p wishlist -f Docker/docker-compose.test up --abort-on-container-exit |
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,21 @@ | ||
import XCTest | ||
@testable import AppTests | ||
@testable import DomainTests | ||
@testable import LibraryTests | ||
|
||
XCTMain([ | ||
// LibraryTests | ||
testCase(UUIDTests.__allTests), | ||
// DomainTests | ||
testCase(AnnouncementsActorTests.__allTests), | ||
testCase(EnrollmentActorTests.__allTests), | ||
testCase(InvitationTests.__allTests), | ||
testCase(TestingUserRepositoryTests.__allTests), | ||
// AppTests | ||
testCase(DomainModelInvitationTests.__allTests), | ||
testCase(DomainModelItemTests.__allTests), | ||
testCase(DomainModelListTests.__allTests), | ||
testCase(DomainModelReservationTests.__allTests), | ||
testCase(DomainModelUserTests.__allTests), | ||
testCase(RequestLanguageServiceTests.__allTests) | ||
]) |
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.