Skip to content

Commit

Permalink
Adapt to AgrospAI marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
rogargon committed Oct 28, 2024
1 parent d8b4bed commit 5052c79
Show file tree
Hide file tree
Showing 38 changed files with 8,839 additions and 199 deletions.
33 changes: 33 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#NEXT_PUBLIC_COMPLIANCE_URI="https://compliance.arlabdevelopments.com/development"
NEXT_PUBLIC_COMPLIANCE_URI="https://compliance.lab.gaia-x.eu/v1-staging"

#NEXT_PUBLIC_INFURA_PROJECT_ID="xxx"
#NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="xxx"
#NEXT_PUBLIC_MARKET_FEE_ADDRESS="0xxx"
#NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE="1"

#
### ADVANCED SETTINGS
#

# Toggle pricing options presented during price creation
#NEXT_PUBLIC_ALLOW_FIXED_PRICING="true"
#NEXT_PUBLIC_ALLOW_FREE_PRICING="true"

# Privacy Preference Center
#NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER="true"

# Development Preference Center
#NEXT_PUBLIC_NFT_FACTORY_ADDRESS='0xxx'
#NEXT_PUBLIC_OPF_COMMUNITY_FEE_COLECTOR='0xxx'
#NEXT_PUBLIC_FIXED_RATE_EXCHANGE_ADDRESS='0xxx'
#NEXT_PUBLIC_DISPENSER_ADDRESS='0xxx'
#NEXT_PUBLIC_OCEAN_TOKEN_ADDRESS='0xxx'
#NEXT_PUBLIC_MARKET_DEVELOPMENT='true'
#NEXT_PUBLIC_PROVIDER_URL="http://xxx:xxx"
#NEXT_PUBLIC_SUBGRAPH_URI="http://xxx:xxx"
#NEXT_PUBLIC_METADATACACHE_URI="http://xxx:xxx"
#NEXT_PUBLIC_RPC_URI="http://xxx:xxx"
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ pontusxAddresses.json @deltaDAO/qa @deltaDAO/frontend
content/* @deltaDAO/qa @deltaDAO/frontend
# Directory managing publicly hosted images
public/images/* @deltaDAO/qa @deltaDAO/frontend

# Adaptations for the AgrospAI marketplace
* @rogargon
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: deploy

on:
push:
branches:
- 'agrospai'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
env:
COMMIT_REF: ${{ github.sha }}
BRANCH: 'agrospai'
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: |
rhizomik/marketplace:${{ github.sha }}
rhizomik/marketplace:latest
63 changes: 63 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
FROM node:18-alpine AS base

# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci --ignore-scripts; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi


# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1

# RUN yarn build

# If using npm comment out above and use below instead
ENV BRANCH 'udl'
ENV COMMIT_REF 0.1
RUN npm run postinstall
RUN npm run build

# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app

ENV NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED 1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

USER nextjs

COPY --from=builder /app/public ./public

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static

EXPOSE 3000

ENV PORT 3000
ENV HOSTNAME localhost

CMD ["node", "server.js"]
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)
<h1 align="center">AgrospAI Data Space</h1>

<h1 align="center">Ocean Marketplace</h1>

[![Build Status](https://github.com/oceanprotocol/market/workflows/CI/badge.svg)](https://github.com/oceanprotocol/market/actions)
[![Netlify Status](https://api.netlify.com/api/v1/badges/c85f4d8b-95e1-4010-95a4-2bacd8b90981/deploy-status)](https://app.netlify.com/sites/market-oceanprotocol/deploys)
[![Maintainability](https://api.codeclimate.com/v1/badges/d114f94f75e6efd2ee71/maintainability)](https://codeclimate.com/repos/5e3933869a31771fd800011c/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/da71759866eb8313d7c2/test_coverage)](https://codeclimate.com/github/oceanprotocol/market/test_coverage)
[![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol)
[![Build Status](https://github.com/agrospai/mvg-portal/workflows/deploy/badge.svg)](https://github.com/rhizomik/mvg-portal/actions)

**Table of Contents**

Expand Down
54 changes: 13 additions & 41 deletions address.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,24 @@ module.exports = {
},
featured: [
{
title: 'Smart Mobility, Automotive',
title: 'AI-based Animal Well-being Assessment without Images Leakage',
assets: [
'did:op:f892fdeb6e4aead439a992ee66322d96d625f7acfed999e633c4b5c81b0968a9', // Hamburg Urban Data
'did:op:60345a1cffaf69e978846858760f69ebe6688e3fa1b9a21f2cdb81b82c415049', // Road Condition Short
'did:op:4103da1b9000f90c4262b94353b23175e490f47e3fd9bf3bda440f550178f423', // Road Condition Long
'did:op:423ae6f53c14980e871ba8109f1f493077c1691dac7a56c413a973238a90f2fa', // Hamburg Road 18
'did:op:61788149bc0837d0bea0ee32b04eb8bebb20c2e73e1098cfdec4807d86eddac7', // Hamburg Road 17
'did:op:1cccfa6b2de76b2f831183c9404675a84f12c336c2ebde87dbfad9e2b39c1295', // SH Road 16
'did:op:f6b81477c783e84cb9fbb0d7b57b1974b6f0a86067f2f17bbdd9f2e2dd7802a3', // SH Road 15
'did:op:555b7d7c03f365c9166afb4524fe5e332f9794fbeb5e9770fe47d1da9adff9c4', // SH Road 14
'did:op:aea8d72bd0ea2f2633599caa69488b212ecaa7fb0b44abb0e3c58494da143b95', // SH Road 13
'did:op:1501d13f41eca77a6a5449a1ecf5d8ff5ca4a1881889af5b8912629ab71856e5', // zone
'did:op:14f5679644249e7889b85d9964abb96eb31eb5537651d3458b9616d29450772c' // ArcGIS
// Mask R-CNN segmentation & Tracking
'did:op:2c0e29e89bee015cbbbaa46ce7f9a566a2cb541367bca926c5552a1b2d697892',
// CEP Pigs Images
'did:op:31d6d1ea0fc540e1ea6e5268ebfd53e8129992cd6971dfbbbd0b88b08ca6f939'
]
},
{
title: 'Manufacturing, Industry 4.0',
title:
'Precision Pig Feeding Semantic Data Integration and Sovereign Data Pooling',
assets: [
'did:op:ec6abd810b3f3d9f3cf7fbbfd3462e289ee9700f0a1ca492adaf6a8c7d0bdce7', // EuPro 882
'did:op:291ac52240e7c422aa8e67f9369efa7b30cbdc3f494922f1b646a8091a97fdb6', // CO2
'did:op:c524a2ad8aab175315cdbb106289114079637529af988874c1a31e9a179e4540', // Condition Monitoring
'did:op:3bee178505bf07494aeaafe67b5d98b5ebd0986bb56d6673e718f8ac4e090c8a', // EuPro 881
'did:op:daecfe8261713a3854bdb59de6e6eba1e614dae3a40f436f955f2a94559a88ca', // EuPro 880
'did:op:f203cde14dc2fa67b58156009463cae1b6679b76e6387da8c43951846788d1a8', // Defects Algo
'did:op:535c60bdf170de37d818f69765f1382dd680b63f245b1a30b897b46ddc753064', // Defects Data
'did:op:8b6e04b2f06290c75926756f814413c134a4fb701c607824fd7f7877f0292483', // AAS
'did:op:e75f58835ca5ac41bdd3464a4229108e1f74e81b71bd691ecca37ac33a79a6e8', // AAS
'did:op:ba056765418629a645d1cea3b6254d1ae8f374fd893edba6c4ddee5f097fefc2', // AAS
'did:op:ea274c721f8c7d36787401dbe7b0fd83670ee50a83aee9d7f1e49060257aa618', // AAS
'did:op:77cb936c42ca521393cdb423926c022b0cbb4442aff2b63a9cfecb2c74941843', // AAS
'did:op:b5c7eb3887469a532a021020365259055084af3d7bd047a8a79a865ee848598e' // AAS
]
},
{
title: 'Text Analysis, Language Processing, and more',
assets: [
'did:op:73c511711d6ad19794cd3797149e3a9fbd6d615246ae2be8d56938985b715ed4', // Cross Asia Text
'did:op:fca47f74bd99d3a3c523bc3242497df4a098ceb028940428db18200c26e74995', // Cross Asia Algo
'did:op:ee381eb15d25d27b663565984601699473afeba4ba2efa43d9b6f9c88827f625', // XAsia Prob Data
'did:op:a63864d02fbda42fa945eb071093bfd69e2b9de2e083382028c531d468996875' // XAsia Prob Algo
]
},
{
title: 'Finance, Business Analytics, and more',
assets: [
'did:op:ab4b4a4953b8fddb69c5a68ce12c10727a002cc160fb9d0dd37aadbfb8de95af' // PMO
// CEP's CSV Data Mapper and Semantic Data Pooler
'did:op:d20f956e79709fb2469fffe2bd85cf2fec95a21d2497998bb530043c6bbec901',
// CEP Pigs Feeding Data
'did:op:f7946c46eb87318b2cd34efdd5f33b19ea9223a90b67f447da6a92aa68ca007c',
// Exploratory Data Analysis
'did:op:34d5f73d77550843201ee1a43ad9d404d3e557ed6a70772e9afde7a27d863b8f'
]
}
],
Expand Down
12 changes: 6 additions & 6 deletions chains.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const chains = [
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 750,
gasFeeMultiplier: 1.1,
providerUri: 'https://provider.dev.pontus-x.eu',
providerAddress: '0x68C24FA5b2319C81b34f248d1f928601D2E5246B',
providerUri: 'https://provider.agrospai.udl.cat',
providerAddress: '0x94549951623DD6c3265DBbB1b032d6cF48Ba7811',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.dev.pontus-x.eu',
subgraphUri: 'https://subgraph.dev.pontus-x.eu',
explorerUri: 'https://explorer.pontus-x.eu/devnet/pontusx'
explorerUri: 'https://explorer.pontus-x.eu/pontusx/dev'
},
{
chainId: 32457,
Expand All @@ -41,12 +41,12 @@ const chains = [
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 750,
gasFeeMultiplier: 1.1,
providerUri: 'https://provider.test.pontus-x.eu',
providerAddress: '0x9546d39CE3E48BC942f0be4AA9652cBe0Aff3592',
providerUri: 'https://provider.agrospai.udl.cat',
providerAddress: '0x94549951623DD6c3265DBbB1b032d6cF48Ba7811',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.test.pontus-x.eu',
subgraphUri: 'https://subgraph.test.pontus-x.eu',
explorerUri: 'https://explorer.pontus-x.eu/testnet/pontusx'
explorerUri: 'https://explorer.pontus-x.eu/pontusx/test'
}
]

Expand Down
15 changes: 4 additions & 11 deletions content/pages/home/content.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"teaser": {
"title": "Pontus-X: Technical Data Sovereignty",
"text": "Pontus-X represents the next generation of data infrastructure: an **open, transparent and secure digital ecosystem**, where data and services can be made available, collated and shared in an environment of trust. The architecture of Pontus-X is based on Gaia-X and on the principle of decentralization."
"title": "",
"text": ""
},
"paragraphs": [
{
Expand All @@ -12,18 +12,11 @@
"image": "/images/ecosystem.webp"
},
{
"title": "Compute-to-Data and its benefits",
"body": "One core concept of Ocean Enterprise is the **Compute-to-Data (CtD)** approach. Compute-to-Data is the functionality that solves the current trade-off between the benefits of using private data and the risks of exposing it. It allows data consumers to run compute jobs on private data while the data stays on-premise with the data provider.",
"title": "Data Sovereignty by Design",
"body": "One core concept of AgrospAI is the **Compute-to-Data (CtD)** approach. Compute-to-Data is the functionality that solves the current trade-off between the benefits of using private data and the risks of exposing it. It allows data consumers to run compute jobs on private data while the data stays on-premise with the data provider, who retains control.",
"cta": "Learn More",
"ctaTo": "https://docs.pontus-x.eu/docs/technical-architecture/architecture-overview",
"image": "/images/ctd_benefits.webp"
},
{
"title": "Gaia-X Digital Clearing House (GXDCH)",
"body": "The Pontus-X ecosystem provided a direct integration with the Gaia-X Digital Clearing Houses (GXDCH). We fast track your onboarding to X-ecosystems and to offering your services in Gaia-X‍ ecosystems. The GXDCH safeguard the distributed, decentralised ways of running the Gaia-X compliance.",
"cta": "Learn More",
"ctaTo": "https://gaia-x.eu/gxdch/",
"image": "/images/gxdch_powered.webp"
}
]
}
24 changes: 8 additions & 16 deletions content/pages/imprint.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
---
title: Imprint
description: Thanks for using our product and services.
title: Contact Information
---

deltaDAO AG<br/>
Katharinenstraße 30a (Contor)<br/>
20457 Hamburg<br/>
Germany<br/><br/>
Roberto García ([[email protected]](mailto:[email protected]))
Associate Professor

**Phone**: +49 40 43281904<br/>
**E-Mail**: [[email protected]](mailto:[email protected])<br/><br/>

**Members of the Board**: Frederic Schwill, Kai Meinke, Albert Peci<br/>
**Chairman of the Supervisory Board**: Dr. Sven Hildebrandt<br/><br/>

**Commercial register**: Handelsregister B des Amtsgerichts Hamburg, HRB 170364<br/>
**USt – IdNr**: DE346013532<br/><br/>

The European Commission provides a platform for online dispute resolution, which you can find here: <https://ec.europa.eu/consumers/odr/>. We are not obliged or willing to participate in a dispute resolution procedure before a consumer arbitration board.
Computer Science and Digital Design Department
Universitat de Lleida
Jaume II, 69
25001 Lleida
Spain
Loading

0 comments on commit 5052c79

Please sign in to comment.