Skip to content

Commit

Permalink
removes shinkai-app (#67)
Browse files Browse the repository at this point in the history
* removes shinkai-app

* update workflows

* add dockerfile back

* wasm-pack is back

* nvm back

* add nvm back
  • Loading branch information
nicarq authored Sep 9, 2023
1 parent 8a00c46 commit e63ff7c
Show file tree
Hide file tree
Showing 106 changed files with 2 additions and 21,891 deletions.
23 changes: 0 additions & 23 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
FROM rust:bookworm as builder
RUN apt-get update && apt-get install -y libclang-dev cmake



# Install nvm, npm and node
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NVM_DIR /usr/local/nvm
Expand All @@ -20,7 +18,6 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH
RUN node -v


# Create a new directory for your app
WORKDIR /app

Expand All @@ -30,29 +27,9 @@ COPY . .

# Build the dependencies (cached)




RUN cargo clean
RUN rustup component add rustfmt
RUN CARGO_BUILD_RERUN_IF_CHANGED=1 cargo build

COPY .github/run-main*.sh /entrypoints/
RUN chmod 755 /entrypoints/*.sh
#RUN cargo test -- --test-threads=1


# Create a new stage for the runtime image
#FROM debian:bookworm-slim

# Install any necessary system dependencies
#RUN apt-get update && apt-get install -y \
# ca-certificates \
# && rm -rf /var/lib/apt/lists/*

# Copy the built binary from the builder stage to the runtime image
#COPY --from=builder /app/target/debug/shinkai_node /usr/local/bin/shinkai_node

# Set the command to run your application when the container starts
#ENTRYPOINT ["/usr/local/bin/shinkai_node"]

36 changes: 0 additions & 36 deletions .github/Dockerfile.shinkai-app

This file was deleted.

5 changes: 1 addition & 4 deletions .github/Dockerfile.wasm
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ FROM rust:bookworm
WORKDIR /app/shinkai-message-wasm
COPY ./shinkai-message-wasm .


#RUN WASM tests
RUN cargo build

#RUN cargo test -- --test-threads=1


# Install nvm
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NVM_DIR /usr/local/nvm
Expand All @@ -26,6 +22,7 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH
RUN node -v


#Install wasm-pack
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
#RUN wasm-pack test --node
Expand Down
11 changes: 0 additions & 11 deletions .github/run-app-unit-tests.sh

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,3 @@ jobs:
- name: Remove image
if: always()
run: docker rmi testing_image_wasm:${SHORT_SHA} || true


test-shinkai-app:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV

- name: Build testing image - shinkai-app
run: docker build -t testing_image_shinkai_app:${SHORT_SHA} -f .github/Dockerfile.shinkai-app .

- name: Run tests shinkai-app unit tests
run: docker run --rm --entrypoint /entrypoints/run-app-unit-tests.sh testing_image_shinkai_app:${SHORT_SHA}

- name: Remove image
if: always()
run: docker rmi testing_image_shinkai_app:${SHORT_SHA} || true

10 changes: 1 addition & 9 deletions Dockerfile.shinkai-app
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,11 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH
RUN node -v

#Install wasm-pack
# Install wasm-pack
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

WORKDIR /app/
COPY . .

WORKDIR /app/shinkai-message-wasm
RUN wasm-pack build
RUN cp -R pkg/ ../shinkai-app/src

WORKDIR /app/shinkai-app
RUN source $NVM_DIR/nvm.sh && nvm install $(cat .nvmrc) && nvm use
RUN npm install
RUN npm run test.unit


6 changes: 0 additions & 6 deletions shinkai-app/.browserslistrc

This file was deleted.

17 changes: 0 additions & 17 deletions shinkai-app/.eslintrc.js

This file was deleted.

29 changes: 0 additions & 29 deletions shinkai-app/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion shinkai-app/.nvmrc

This file was deleted.

5 changes: 0 additions & 5 deletions shinkai-app/.vscode/extensions.json

This file was deleted.

10 changes: 0 additions & 10 deletions shinkai-app/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions shinkai-app/capacitor.config.ts

This file was deleted.

10 changes: 0 additions & 10 deletions shinkai-app/cypress.config.ts

This file was deleted.

6 changes: 0 additions & 6 deletions shinkai-app/cypress/e2e/test.cy.ts

This file was deleted.

5 changes: 0 additions & 5 deletions shinkai-app/cypress/fixtures/example.json

This file was deleted.

37 changes: 0 additions & 37 deletions shinkai-app/cypress/support/commands.ts

This file was deleted.

20 changes: 0 additions & 20 deletions shinkai-app/cypress/support/e2e.ts

This file was deleted.

30 changes: 0 additions & 30 deletions shinkai-app/index.html

This file was deleted.

7 changes: 0 additions & 7 deletions shinkai-app/ionic.config.json

This file was deleted.

Loading

0 comments on commit e63ff7c

Please sign in to comment.