Skip to content

Instantly share code, notes, and snippets.

@tieniber
tieniber / Dockerfile
Created July 23, 2020 23:27
Mendix docker multistage build for mxclyde : older syntax
# Dockerfile to create a Mendix Docker image based on either the source code or
# Mendix Deployment Archive (aka mda file)
#
# Author: Mendix Digital Ecosystems, digitalecosystems@mendix.com
# Version: 2.0.0
FROM mxclyde/rootfs:bionic as builder
LABEL Author="Mendix Digital Ecosystems"
LABEL maintainer="digitalecosystems@mendix.com"
# Build-time variables
@tieniber
tieniber / Dockerfile
Created July 23, 2020 22:26
Mendix docker multistage build for mxclyde
# Dockerfile to create a Mendix Docker image based on either the source code or
# Mendix Deployment Archive (aka mda file)
#
# Author: Mendix Digital Ecosystems, digitalecosystems@mendix.com
# Version: 2.0.0
ARG ROOTFS_IMAGE=mxclyde/rootfs:bionic
FROM ${ROOTFS_IMAGE} as builder
LABEL Author="Mendix Digital Ecosystems"
LABEL maintainer="digitalecosystems@mendix.com"
const webpack = require("webpack");
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const variables = require("@mendix/pluggable-widgets-tools/configs/variables");
const packagePath = variables.package.packagePath.replace(/\./g, "/");
const widgetName = variables.package.widgetName;
const name = widgetName.toLowerCase();
const widgetConfig = {
@tieniber
tieniber / JS_GetCurrentLocation.js
Created May 14, 2020 17:06
A Mendix JS action that creates and returns a new object containing your user's current location.
// This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
import { Big } from "big.js";
// BEGIN EXTRA CODE
package imap_pop3_email.actions;
import imap_pop3_email.proxies.Attachment;
import imap_pop3_email.proxies.AttachmentPosition;
import imap_pop3_email.proxies.EmailAccount;
import imap_pop3_email.proxies.EmailMessage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;